Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC830713); site mcvax.UUCP Path: utzoo!linus!philabs!mcvax!aeb From: aeb@mcvax.UUCP (Andries Brouwer) Newsgroups: net.unix-wizards Subject: lint bug Message-ID: <5360@mcvax.UUCP> Date: Thu, 25-Aug-83 16:16:44 EDT Article-I.D.: mcvax.5360 Posted: Thu Aug 25 16:16:44 1983 Date-Received: Sun, 28-Aug-83 23:12:39 EDT Organization: Math.Centre, Amsterdam Lines: 19 A program like extern long lseek(); main(){ (void) lseek(0, 0L, 0); } causes lint (BSD 4.1c) when called as lint -a prog.c to complain prog.c: prog.c(4): warning: long assignment may lose accuracy which seems fairly ridiculous. The following change fixes this. $ diff lint.c /usr/src/usr.bin/lint/lint.c 648,649c648 < if( aflag && (tl==LONG || tl==ULONG) < && (t!=LONG && t!=ULONG && t!=UNDEF) ){ --- > if( aflag && (tl==LONG||tl==ULONG) && (t!=LONG&&t!=ULONG) ){ -- Andries Brouwer -- Math. Centr., Amsterdam -- {philabs,decvax}!mcvax!aeb