GNOME Bugzilla – Bug 121175
Compiler error in gst-libs/gst/media-info/media-info.c with #define and variable args
Last modified: 2004-12-22 21:47:04 UTC
The '#define GM_DEBUG' code does not compile on Solaris 8 x86 with the latest compiler, Sun ONE Studio 8. Makefile and compiler output: cc -DHAVE_CONFIG_H -I. -I. -I../../.. -I/opt/gnome-2.4/include -I../../../gst-libs -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -mt -I/opt/gnome-2.4/include/gstreamer-0.6 -I/opt/gnome-2.4/include/glib-2.0 -I/opt/gnome-2.4/lib/glib-2.0/include -I/opt/gnome-2.4/include/libxml2 -DGST_DISABLE_DEPRECATED -g -g -I/opt/gnome-2.4/include -c media-info.c -KPIC -DPIC -o libgstmedia_info_0.6_la-media-info.o "media-info.c", line 25: syntax error in macro parameters "media-info.c", line 294: warning: implicit function declaration: GMI_DEBUG cc: acomp failed for media-info.c make[4]: *** [libgstmedia_info_0.6_la-media-info.lo] Error 1 make[4]: Leaving directory `/gnome/2.4/nightly/src-2.4-20030901/gst-plugins-0.6.3/gst-libs/gst/media-info' Attached patch fixes it.
Created attachment 19641 [details] [review] Use __VA_ARGS__ in media-info.c
Applied to 0.6, thanks. Already applied to HEAD.