for the example you gave the diagnostic is correct. On 28 February 2012 18:20, erik quanstrom <quans...@quanstro.net> wrote: > On Tue Feb 28 02:16:04 EST 2012, bruce.el...@gmail.com wrote: >> what values of p[1] do you expect the test to be of use? >> >> On 28 February 2012 15:40, erik quanstrom <quans...@quanstro.net> wrote: >> > for p = uchar*, Nbus==256, >> > >> > if((uint)p[1] >= Nbus){ >> > >> > generates >> > >> > warning: ./mp.c:212 useless or misleading comparison: UCHAR >= 0x100 >> > >> > i'm pretty sure that 6c is incorrectly issuing the diagnostic before >> > applying the cast. (the cast is there to shut the compiler up.) > > it is not a given that Nbus >= 255. > > - erik >
-- Don't meddle in the mouth -- MVS (0416935147, +1-513-3BRUCEE)