Path: utzoo!attcan!uunet!vsi!friedl From: friedl@vsi.COM (Stephen J. Friedl) Newsgroups: comp.lang.c Subject: Re: LINT won't do your debugging for you Summary: /*EMPTY*/ Message-ID: <1141@vsi.COM> Date: 29 Jun 89 21:13:28 GMT References: <713@srhqla.SR.COM> Organization: V-Systems, Inc. -- Santa Ana, CA Lines: 22 > if (condition); <--- note semicolon > action; In article <713@srhqla.SR.COM>, tcm@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@vsi.com / {attmail, uunet, etc}!vsi!friedl ---> vsi!bang!friedl <-- NEW "Friends don't let friends run Xenix" - me