GNOME Bugzilla – Bug 536981
gstdoc-scangobj: printf-like functions without format string
Last modified: 2008-06-20 08:43:21 UTC
Hi, gstdoc-scangobj currently uses some printf-like functions without format string. This leads to compiler warnings with -Wformat=2: cc1: warnings being treated as errors gstreamer-scan.c: In function 'output_hierarchy': gstreamer-scan.c:712: error: format not a string literal and no format arguments gstreamer-scan.c: In function 'output_interfaces': gstreamer-scan.c:763: error: format not a string literal and no format arguments gstreamer-scan.c: In function 'output_prerequisites': gstreamer-scan.c:808: error: format not a string literal and no format arguments Attached patch fixes this, will commit after freezes.
Created attachment 112277 [details] [review] gstdoc-scangobj.diff
2008-06-20 Sebastian Dröge <slomo@circular-chaos.org> * gstdoc-scangobj: Always use format strings for printf-like functions, even if they just print a string. Fixes bug #536981.