lint won't verify printf formatting against variable types??
Bob Weissman
bob at omni.com
Fri Jun 30 03:20:53 AEST 1989
In article <27729 at lll-winken.LLNL.GOV>, berry at lll-crg.llnl.gov (Berry Kercheval) writes:
> In article <441a30e5.8f55 at fiero.engin.umich.edu>, ejd at caen (Edward J Driscoll) writes:
> >It [[ if(x==5); ]]is legal, but I would hope for a warning from such an
> > obvious semantic error.
>
> Goodness, save me from useless warnings for perfectly good C
> constructs. This is NOT an "obvious" semantic error. Have you never
> done something like this?
>
> /* skip to end of word */
> while(!isspace(*cp++));
Sorry, but "while" is quite different from "if".
I'm not talking about
random_keyword (expression);
I'm talking about
if (expression);
which, while legal, *never* makes sense semantically, as it is always
equivalent to
expression;
OK?
--
Bob Weissman
Domainish: bob at omni.com
UUCPish: ...!{amdahl,apple,pyramid,tekbspa,uunet}!koosh!bob
More information about the Comp.lang.c
mailing list