This is the mail archive of the gcc-help@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]

Re: may be undefined operation warning


Hi Wesley,

> Any ideas?  Thanks,

The warning is basically from this:

*c++ = *c;

The solution is "don't do that".

uchar tmp = *c;
*c++ = MAX_CHAR(tmp, accum);

HTH,
--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]