jv@mhres.mh.nl (Johan Vromans) (09/04/87)
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"