Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: net.lang.c Subject: Re: C Compiler bug Message-ID: <6191@elsie.UUCP> Date: Sat, 26-Jul-86 18:58:11 EDT Article-I.D.: elsie.6191 Posted: Sat Jul 26 18:58:11 1986 Date-Received: Sat, 26-Jul-86 22:22:56 EDT References: <501@bunny.UUCP> <500@copper.UUCP> <3162@utcsri.UUCP> Distribution: net Organization: NIH-LEC, Bethesda, MD Lines: 31 Summary: lint mods For those with source code, here's an addition to "lint" to generate warnings about float /= int and int /= float constructs. This is an addition to the 4.1BSD version of "lint/lint.c", in particular to the function "clocal"; your mileage will vary. As always, the trade secret status of the code involved precludes a clearer posting. The addition is conditioned on "OLDVERSION". ... NODE * clocal(p) NODE *p; { ... switch( o = p->in.op ){ #ifndef OLDVERSION case ASG MUL: if (pflag && p->in.right->in.op == SCONV) werror( "mixed-mode *= may surprise you"); break; case ASG DIV: if (pflag && p->in.right->in.op == SCONV) werror( "mixed-mode /= may surprise you"); break; #endif /* !OLDVERSION */ ... -- Lint is an Oscar Madison trademark. -- UUCP: ..decvax!seismo!elsie!ado ARPA: elsie!ado@seismo.ARPA DEC, VAX, Elsie & Ado are Digital, Borden & Ampex trademarks.