Path: utzoo!attcan!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!apple!snorkelwacker!spdcc!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: lint vs varargs Keywords: casts lint varargs Message-ID: <15007@haddock.ima.isc.com> Date: 27 Oct 89 18:08:24 GMT References: <453@bdrc.UUCP> <1989Oct26.171829.7520@tcsc3b2.tcsc.com> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 13 In article <1989Oct26.171829.7520@tcsc3b2.tcsc.com> pag@tcsc3b2.tcsc.com (Philip A. Gross) writes: >You may want to try placing the following comment before your function >which uses varargs. >/* VARARGS */ >Most versions of lint will recognize this comment and then properly >ignore the undeclared parameters. For example, Uh, yes, but this has nothing to do with the problem he was having. You've "solved" his problem by writing the routine to not use either of the standard varargs-access mechanisms, resulting in a program that passes lint, but doesn't work. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint