This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

va-960.h warning



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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]