This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
va-960.h warning
- To: egcs at cygnus dot com
- Subject: va-960.h warning
- From: Joel Sherrill <joel at OARcorp dot com>
- Date: Sat, 2 May 1998 10:38:45 -0500 (CDT)
Hi,
While investigating warning messages, I came across one caused by the
definition of va_end in va-960.h in egcs-1.0.2. The definition is:
#ifndef va_end
void va_end (__gnuc_va_list); /* Defined in libgcc.a */
#endif
#define va_end(AP) ((void *)0)
And causes this warning:
file:NNN: warning: statement with no effect
Wouldn't the following avoid a warning?
#define va_end(AP)
--joel
Joel Sherrill Director of Research & Development
joel@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (205) 722-9985