Tugger the SLUGger!SLUG Mailing List Archives

Re: [chat] Warnings and va_lists...


On Sun, 21 Oct 2001, Ken Foskey wrote:

> Another bug in gcc -Wall:
> 
> inline void SalDbgAssert( char* pFmt, ... )
> {
>    va_list ap;
>    va_start( ap, &pFmt );
>    vfprintf( stderr, pFmt, ap );
>    va_end( ap );
> }

should be va_start(ap, pFmt); i think.

Benno