Funny mistake
J.T. Conklin
jtc at motcad.portal.com
Sat Mar 16 04:04:49 AEST 1991
In article <8148 at rsiatl.Dixie.Com> stan at Dixie.Com (Stan Brown) writes:
>>"if (a = b)" instead of "if (a == b)".
>
> Some compilers will report this as a suspicous occurence. The
> one I think I remember this on is Zortech, but I have yet to
> see a UNIX compiler complain about it, The lint on my mchine
> doesn't complain eithe. I wonder if anybody's does ?
Gimpel's FlexeLint:
if (a = b)
foo.c 5 Info 720: Boolean test of assignment
--
J.T. Conklin jtc at motcad.portal.com, ...!portal!motcad!jtc
More information about the Comp.lang.c
mailing list