In attempting to compile GCC with -Wold-style-definition, I ran into many of the following errors, which are false positives due to the ellipsis. From gengtype.c:70 /* Wrapper for xvasprintf. */ char * xasprintf (const char *format, ...) { char *result; va_list ap; va_start (ap, format); xvasprintf (&result, format, ap); va_end (ap); return result; } This warns with: ../../gcc-snapshot/gcc/gengtype.c: In function `xasprintf': ../../gcc-snapshot/gcc/gengtype.c:73: warning: old-style parameter declaration Reduced Testcase and suggested patch coming shortly
Created attachment 4866 [details] Reduced testcase Compiling this with -Wold-style-definition will show the bug
Created attachment 4868 [details] Proposed Patch http://gcc.gnu.org/ml/gcc-patches/2003-09/msg02134.html
I can confirm this on the mainline (20030930).
Closing as fixed as the patch went in: <http://gcc.gnu.org/ml/gcc-cvs/2003-10/ msg00040.html>