Path: utzoo!attcan!uunet!ingr! From: rcl@b15.INGR.COM (Rob Lemley) Newsgroups: comp.lang.c Subject: Re: Why use (void) func() ? (lint beef) Message-ID: <1732@b15.INGR.COM> Date: 4 Oct 90 13:34:52 GMT References: <586@dptechno.UUCP> <1990Sep24.193012.14074@diku.dk> <12141@crdgw1.crd.ge.com> <151806@felix.UUCP> <1014@gistdev.gist.com> Organization: Intergraph Huntsville Lines: 35 th: b15!rcl In <1014@gistdev.gist.com> flint@gistdev.gist.com (Flint Pellett) writes: >Something I think would help lint a lot would be the following two options: >1. An option to ignore extern declarations made in a .h that aren't used. > The same goes for declarations I put in my own .h files. Now if I have > an extern right there in the file that I haven't used, I want to know > about that, but if it's in some .h, who cares? I don't think you can do this on System V Release 3. >2. An option to not print out all the "function declared but never used" > and "function referenced but never declared". . . . You CAN do this on System V Release 3. From the UNIX System V Release 3 Programmer's Reference Manual, LINT(1), The following options are used to suppress certain kinds of complaints: -u Suppress complaints about functions and external variables used and not defined, or defined and not used. (This option is suitable for running lint on a subset of files of a larger program). -x Do not report variables referred to by external declarations but never used. -- -Rob Lemley 205-730-1546 System Consultant, Scanning Software, Intergraph Corp., Huntsville, AL ...!uunet!ingr!b15!rcl b15!rcl@INGR.COM 204-730-1546