Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!husc6!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: Yet Another Lint Foul-up Message-ID: <9309@smoke.BRL.MIL> Date: 7 Jan 89 10:20:32 GMT References: <1298@tank.uchicago.edu> <9296@smoke.BRL.MIL> <14502@oberon.USC.EDU> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 18 In article <14502@oberon.USC.EDU> blarson@skat.usc.edu (Bob Larson) writes: >In article <9296@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) writes: >Depending on which version of lint you use, (I've heard it is fixed >in sunos 4.0) you should add: > varargs functions Ok, that's another. >At least one version of varargs does not allow any arguments to >the function besides va_alist, and the /*VARARGS0*/ comment does >not shut the lint I use (sunos 3.2) up. /*VARARGSn*/ n!=0 is not >portable. Plain /*VARARGS*/ works, although it disables type checking of ALL the arguments. Note that the varargs specification does NOT permit any formal parameter besides va_alist. Even if the first argument always has the same type, you're required to pick it up via the va_arg macro like all the rest.