Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!mcvax!mhres!jv From: jv@mhres.mh.nl (Johan Vromans) Newsgroups: comp.lang.c Subject: Suppressing lint warnings (was: Lint warnings) Message-ID: <1264@mhres.mh.nl> Date: Fri, 4-Sep-87 03:07:13 EDT Article-I.D.: mhres.1264 Posted: Fri Sep 4 03:07:13 1987 Date-Received: Sat, 5-Sep-87 16:38:18 EDT References: <869@tjalk.cs.vu.nl> <1053@haddock.ISC.COM> Organization: Multihouse N.V., The Netherlands Lines: 31 In article <1053@haddock.ISC.COM> karl@haddock.ima.isc.com (Karl Heuer) writes: >In article <869@tjalk.cs.vu.nl> rblieva@cs.vu.nl (Roemer B. Lievaart) writes: >>BTW. Does anybody know how to stop lint complaining about functions >>returning values wich are always/sometimes ignored? > >Explicitly cast them to (void). Hmmm. These are the results on my system (HP9000/500 with HP-UX 5.11): $ cat t.c main () { (void) close (1); } $ lint t.c t.c ============== (1) warning: main() returns random value to invocation environment ============== function returns value which is always ignored close $ Flames to comp.sys.hp please. Any other suggestions? -- Johan Vromans | jv@mh.nl via European backbone Multihouse N.V., Gouda, the Netherlands | uucp: ..{?????!}mcvax!mh.nl!jv "It is better to light a candle than to curse the darkness"