va_list declared twice on SunOS 5.7

Patrik Hagglund patha@softlab.ericsson.se
Mon Aug 7 04:15:00 GMT 2000


The following code declares va_list twice on SunOS 5.7:

  #define _XOPEN_SOURCE 500
  #include <stdarg.h>
  #include <stdio.h>


  /usr/include/stdio.h:118: warning: redefinition of `va_list'
  /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.96/include/stdarg.h:90: warning: `va_list' previously declared here

I get the same result for gcc-2.95.2 and egcs-20000626.

--
Patrik Hägglund


More information about the Gcc-bugs mailing list