Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site phri.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!lll-crg!dual!qantel!ihnp4!houxm!mtuxo!mtunh!mtung!mtunf!ariel!vax135!timeinc!phri!roy From: roy@phri.UUCP (Roy Smith) Newsgroups: net.lang.c Subject: Re: how has C bitten you? Message-ID: <389@phri.UUCP> Date: Fri, 9-Aug-85 19:15:20 EDT Article-I.D.: phri.389 Posted: Fri Aug 9 19:15:20 1985 Date-Received: Tue, 13-Aug-85 01:34:24 EDT References: <302@brl-tgr.ARPA> <4081@alice.UUCP> <243@ecrhub.UUCP> <123@ecsvax.UUCP> Distribution: net Organization: Public Health Research Inst. (NY, NY) Lines: 15 Here's one that just got me: if (sv > score); <----- note extraneous semi-colon score = sv; This was in a series of computations which gave various scores; the fragment above was repeated in various places to pick out the maximum. Of course, the test is a no-op and the assignment was always done. Naturally, this passes lint (even with the -h flag which uses "heuristic tests to attempt to intuit bugs") without any complaint. -- Roy SmithSystem Administrator, Public Health Research Institute 455 First Avenue, New York, NY 10016