Path: utzoo!attcan!uunet!gistdev!flint From: flint@gistdev.gist.com (Flint Pellett) Newsgroups: comp.lang.c Subject: Re: Why use (void) func() ? (lint beef) Message-ID: <1014@gistdev.gist.com> Date: 3 Oct 90 14:52:58 GMT References: <586@dptechno.UUCP> <1990Sep24.193012.14074@diku.dk> <12141@crdgw1.crd.ge.com> <151806@felix.UUCP> Organization: Global Information Systems Technology Inc., Savoy, IL Lines: 22 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. (Ever run lint on something that #includes ? You get to wade through 3 pages of curses routines that were extern'ed but not 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? 2. An option to not print out all the "function declared but never used" and "function referenced but never declared". When you have a real big program spanning 100 files, you'd like to be able to run lint on just one file at a time as you work on that one file-- but when you do, you get reports about all the functions you used from the other files, and about the fact that nobody is calling any of the subroutines that you have in that one file. Basically, all I want is a quick syntax & types check, without a check on external references. -- Flint Pellett, Global Information Systems Technology, Inc. 1800 Woodfield Drive, Savoy, IL 61874 (217) 352-1165 uunet!gistdev!flint or flint@gistdev.gist.com