Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!wuarchive!usc!snorkelwacker.mit.edu!apple!agate!agate!rusty From: rusty@belch.Berkeley.EDU (Rusty Wright) Newsgroups: comp.unix.ultrix Subject: lint problem, Ultrix 4.1, DECstation 5000 Message-ID: Date: 9 Dec 90 21:49:02 GMT Sender: usenet@agate.berkeley.edu (USENET Administrator) Distribution: comp Organization: Computer Center, UC Berkeley Lines: 28 The following code, when run through lint (1) elicits no complaints about varx being unused and (2) complains that func2 returns a value that is always ignored. These all seem to be errors on lint's behalf. Here is the output of lint: ============== name defined but never used func1 fluff.c(2) function returns value which is always ignored getpid For comparison, here is the output from lint on a SPARCstation running SunOS 4.1: fluff.c(4): warning: varx unused in function func1 func1 defined( fluff.c(2) ), but never used Does anybody know if there is a better lint available from the folks in Atlanta or what the status is on getting this fixed? void func1() { extern int getpid(); int varx; (void) getpid(); }