Bug in gcc/ginclude/va-i960.h

Brad M. Garcia bgarcia@fore.com
Fri Apr 17 10:21:00 GMT 1998


In this file, va_end is defined as:

    #define va_end(AP)      ((void *)0)

But egcs doesn't like this, and responds with:

    libpam/pam_log.c: In function `pam_system_log':
    libpam/pam_log.c:399: warning: statement with no effect

I believe it should actually be defined as:

    #define va_end(AP)      ((void)0)

Just like for every other machine.  The warning goes away in
that case.

Brad Garcia
   ___/  __ /  __ /  ___/ "Being the Linux of digital media
  __/   /  /  / _/  __/    would be a very good life."
_/    ____/ _/ _| ____/      - Jean-Louis Gassee, CEO of Be, Inc.





More information about the Gcc-bugs mailing list