LINT won't do your debugging for you
Stephen J. Friedl
friedl at vsi.COM
Fri Jun 30 07:13:28 AEST 1989
> if (condition); <--- note semicolon
> action;
In article <713 at srhqla.SR.COM>, tcm at srhqla.SR.COM (Tim Meighan) writes:
>
> 1. There is rarely, if ever, a case when it would be reasonable for a
> program to contain an if() statement that, when evaluated as true,
> does absolutely nothing. (In other words, simply fall through to
> the code to be executed when the if() is false.)
Some versions of lint will in fact warn about empty blocks, and for
those few times when this is really what you want, the /*EMPTY*/
lintpragma suppresses this warning.
Steve
--
Stephen J. Friedl / V-Systems, Inc. / Santa Ana, CA / +1 714 545 6442
3B2-kind-of-guy / friedl at vsi.com / {attmail, uunet, etc}!vsi!friedl
---> vsi!bang!friedl <-- NEW
"Friends don't let friends run Xenix" - me
More information about the Comp.lang.c
mailing list