This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
> > The warning is produced because the existing cast to char * discards the > qualifier. We need a cleverer way of discarding the const qualifier, > hence: > >> - args[0] = (char *) arg; >> + args[0] = (void *) (intptr_t) arg; > > I'm open to suggestions :-) (including adding a comment). > CONST_CAST2 in system.h. The comment is already there. Danny
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |