may be undefined operation warning
Wesley Smith
wesley.hoke@gmail.com
Mon Feb 25 04:08:00 GMT 2008
> > > c = out_pix + (voffset - *cp++)*out_rowstride;
> > > *c++ = MAX_CHAR(*c, accum); ///<------------- warning on this line
> >
> > The first store to *c happens after the load on the RHS of the assignment.
> >
>
> Thanks,
> Perhaps I should have mentioned that before this is called (which is
> in a tight for loop), I zero out the entire block of memory. Is what
> you mentioned causing the error or were you just pointing out a
> potential coding error?
Argghh. I just noticed I didn't post the macro like I thought I had:
#define MAX_CHAR(data, accum) ((255 - (data)) > (accum)) ? ((accum) +
(data)) : 255
wes
More information about the Gcc-help
mailing list