Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!haven!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: How about a Lint warning for "while (no-side-effects) ;" ?? Message-ID: <18343@mimsy.UUCP> Date: 30 Jun 89 21:17:18 GMT References: <328@tree.UUCP> <417@siswat.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 12 There is a fairly simple solution to the `extra semicolon' problem: use a prettyprinter. I feed much of my code through `indent' (included with recent 4BSD and SunOS releases). This has the side effect of making conflicts between layout and code structure vanish. (Some may not like this solution. Another approach, simpler than Arthur Olson's change to lint, is to have lint complain about *every* null statement unless it is prefixed by an anti-complaint comment, such as `/*skip*/' or `/*void*/' or `/*empty*/'.) -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris