From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030704 Description of problem: the list of local variables is malfourmed. The ordering needs changing. Current: va_start (args, format);; gchar* msg = g_strdup_vprintf (format, args); Need: gchar* msg = g_strdup_vprintf (format, args); va_start (args, format);; what can I say va_start is a macro an variables must come first... Version-Release number of selected component (if applicable): glib-2.2.3 How reproducible: Always Steps to Reproduce: 1. Have older version of compiler.gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110) 2. rebuild package 3. Actual Results: failure Expected Results: i386.rpm Additional info: just reorder the two statements and it fixes the eror.
You ever get those days were youre brain dead, I know that I do. Here is the correct code snipet. While va_start is code g_strdup_vprintf must come after it. sigh gchar* msg; va_start (args, format);; msg=g_strdup_vprintf (format, args);
This is been fixed in GNOME CVS, but anyways, should compile fine with the supported Red Hat compiler ... C++ style mixing of code and declarations is in the C99 standard.