Path: utzoo!attcan!uunet!cs.utexas.edu!wuarchive!julius.cs.uiuc.edu!apple!olivea!tymix!cirrusl!sunstorm!dhesi From: dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) Newsgroups: comp.lang.c Subject: Re: Why use (void) func() ? (lint beef) Message-ID: <2547@cirrusl.UUCP> Date: 7 Oct 90 03:41:38 GMT References: <586@dptechno.UUCP> <1990Sep24.193012.14074@diku.dk> <12141@crdgw1.crd.ge.com> <151806@felix.UUCP> <1014@gistdev.gist.com> <1732@b15.INGR.COM> Sender: news@cirrusl.UUCP Organization: Cirrus Logic Inc. Lines: 30 In my makefile I have several lint targets that provide different levels of linting. I normally do "make lint". Less often, I use a different level. Each target filters through a different egrep pattern. lint0: lint $(LINTFLAGS) $(SRCS) lint1: lint $(LINTFLAGS) $(SRCS) | \ egrep -v "`cat .stop.$@`" lint2: lint $(LINTFLAGS) $(SRCS) | \ egrep -v "`cat .stop.$@`" lint3: lint $(LINTFLAGS) $(SRCS) | \ egrep -v "`cat .stop.$@`" The .stop.lint* files contain the lint output filtration patterns. E.g., .stop.lint3 contains (all one line; broken with \ here for clarity): enumeration type clash|possible pointer alignment|\ unused in function|set but not used in function|\ but never used|iovec never defined -- Rahul Dhesi UUCP: oliveb!cirrusl!dhesi