Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site jplgodo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!tektronix!hplabs!sdcrdcf!usc-oberon!smeagol!jplgodo!steve From: steve@jplgodo.UUCP (Steve Schlaifer x3171 156/224) Newsgroups: net.lang.c Subject: Re: Question about LINT Message-ID: <761@jplgodo.UUCP> Date: Fri, 11-Apr-86 13:24:44 EST Article-I.D.: jplgodo.761 Posted: Fri Apr 11 13:24:44 1986 Date-Received: Fri, 18-Apr-86 04:00:49 EST References: <5000041@inmet> Organization: Jet Propulsion Labs, Pasadena, CA Lines: 22 Summary: cast ignored function value to void In article <5000041@inmet>, az@inmet.UUCP writes: > > If one has a function which is sometimes called as a procedure > (ignoring returned value) is there a way to tell lint not to > complain about this? Yes, if you have something like int foo(); and want to ignore the return function value on a call then (void)foo(args); will keep lint from complaining and also make the code clearer. -- ...smeagol\ Steve Schlaifer ......wlbr->!jplgodo!steve Advance Projects Group, Jet Propulsion Labs ....group3/ 4800 Oak Grove Drive, M/S 156/204 Pasadena, California, 91109 +1 818 354 3171