Tugger the SLUGger!SLUG Mailing List Archives

[chat] Warnings and va_lists...


Another bug in gcc -Wall:

inline void SalDbgAssert( char* pFmt, ... )
{
   va_list ap;
   va_start( ap, &pFmt );
   vfprintf( stderr, pFmt, ap );
   va_end( ap );
}

sound.hxx:145: warning: second parameter of `va_start' not last named argument

Looks like an incorrect error message to me, am I right or wrong.

KenF