Subject: Re: va_list on PPC (was Re: CVS commit: syssrc/sys/arch/powerpc/include)
To: Thomas Klausner <>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: tech-toolchain
Date: 08/08/2002 14:18:23
In message <>Thomas Klausner writes
>Last autumn I did an audit on NetBSD for that and fixed all
>occurrences of that in the base system (and similar problems like
>missing va_end()s).

One trick is to define va_start() to include a hangng open-brace, and
define va_end to include a matching open brace.  Compiling both with
and without this trick will catch all the missing va_end()s.

At least one pre-ansi-C Unix vendor shipped a system which did it.