GNOME Bugzilla – Bug 550015
build failure: gstcmmlparser.c:115: error: format not a string literal and no format arguments
Last modified: 2008-08-31 08:32:44 UTC
Building gst-plugins-good HEAD using jhbuild on Ubuntu intrepid, the following error occurs: libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -pthread -I/opt/gnome2/include/gstreamer-0.10 -I/opt/gnome2/include/glib-2.0 -I/opt/gnome2/lib64/glib-2.0/include -I/opt/gnome2/include/libxml2 -pthread -I/opt/gnome2/include/gstreamer-0.10 -I/opt/gnome2/include/glib-2.0 -I/opt/gnome2/lib64/glib-2.0/include -I/opt/gnome2/include/libxml2 -I../../gst-libs -I../../gst-libs -pthread -I/opt/gnome2/include/gstreamer-0.10 -I/opt/gnome2/include/glib-2.0 -I/opt/gnome2/lib64/glib-2.0/include -I/opt/gnome2/include/libxml2 -Wall -Wdeclaration-after-statement -Wvla -Werror -fno-strict-aliasing -g -DGST_DISABLE_DEPRECATED -I/opt/gnome2/include/libxml2 -g -O0 -MT libgstannodex_la-gstcmmlparser.lo -MD -MP -MF .deps/libgstannodex_la-gstcmmlparser.Tpo -c gstcmmlparser.c -fPIC -DPIC -o .libs/libgstannodex_la-gstcmmlparser.o cc1: warnings being treated as errors gstcmmlparser.c: In function ‘gst_cmml_parser_parse_chunk’: gstcmmlparser.c:115: error: format not a string literal and no format arguments make[3]: *** [libgstannodex_la-gstcmmlparser.lo] Error 1 make[3]: Leaving directory `/home/oxyde/cvs/gnome2/gst-plugins-good/ext/annodex' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/oxyde/cvs/gnome2/gst-plugins-good/ext' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/oxyde/cvs/gnome2/gst-plugins-good' make: *** [all] Error 2
Created attachment 117679 [details] [review] patch to fix 'format not a string literal and no format arguments'
You'll probably have some more fun with building random software on Ubuntu with -Werror as they have -Wformat=2 enabled by default and at least last time I tried it was causing some false positives :) Whatever, this one is correct and committed now... thanks :) 2008-08-31 Sebastian Dröge <sebastian.droege@collabora.co.uk> Patch by: Craig Keogh <cskeogh at adam dot com dot au> * ext/annodex/gstcmmlparser.c: (gst_cmml_parser_parse_chunk): Fix compiler warnings caused by passing a string as format string instead of "%s" and then the string. This is only exposed by -Wformat=2 as used by default on Ubuntu. Fixes bug #550015.