This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
va_list declared twice on SunOS 5.7
- To: gcc-bugs at gcc dot gnu dot org
- Subject: va_list declared twice on SunOS 5.7
- From: Patrik Hagglund <patha at softlab dot ericsson dot se>
- Date: Mon, 07 Aug 2000 13:15:34 +0200
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