summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2019-09-23 15:39:55 +1000
committerMatthew Waters <matthew@centricular.com>2019-09-23 17:59:12 +1000
commit8ce2460ad59bc193fda50bd2b21791503c8e8274 (patch)
treea6fe1dda9195752f2ea5e734778d10733b7171b1 /tools
parentdff5399e8750bf0f48efd23370f09aeddeb1d7d8 (diff)
downloadgstreamer-plugins-base-8ce2460ad59bc193fda50bd2b21791503c8e8274.tar.gz
build: fix debug output werror build with newer gcc
In file included from ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gst.h:55, from ../gst-libs/gst/tag/tag.h:25, from ../gst-libs/gst/tag/gsttageditingprivate.h:24, from ../gst-libs/gst/tag/gsttageditingprivate.c:23: ../gst-libs/gst/tag/gsttageditingprivate.c: In function ‘__exif_tag_capturing_white_balance_to_exif_value’: ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstinfo.h:645:5: error: ‘%s’ directive argument is null [-Werror=format-overflow=] 645 | gst_debug_log ((cat), (level), __FILE__, GST_FUNCTION, __LINE__, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 646 | (GObject *) (object), __VA_ARGS__); \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstinfo.h:1068:27: note: in expansion of macro ‘GST_CAT_LEVEL_LOG’ 1068 | #define GST_WARNING(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_WARNING, NULL, __VA_ARGS__) | ^~~~~~~~~~~~~~~~~ ../gst-libs/gst/tag/gsttageditingprivate.c:265:3: note: in expansion of macro ‘GST_WARNING’ 265 | GST_WARNING ("Invalid white balance: %s", str); | ^~~~~~~~~~~ ../gst-libs/gst/tag/gsttageditingprivate.c:265:40: note: format string is defined here 265 | GST_WARNING ("Invalid white balance: %s", str); | ^~ In file included from ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gst.h:55, from ../gst-libs/gst/tag/tag.h:25, from ../gst-libs/gst/tag/gstxmptag.c:39: ../gst-libs/gst/tag/gstxmptag.c: In function ‘deserialize_exif_gps_direction’: ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstinfo.h:645:5: error: ‘%s’ directive argument is null [-Werror=format-overflow=] 645 | gst_debug_log ((cat), (level), __FILE__, GST_FUNCTION, __LINE__, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 646 | (GObject *) (object), __VA_ARGS__); \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstinfo.h:1068:27: note: in expansion of macro ‘GST_CAT_LEVEL_LOG’ 1068 | #define GST_WARNING(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_WARNING, NULL, __VA_ARGS__) | ^~~~~~~~~~~~~~~~~ ../gst-libs/gst/tag/gstxmptag.c:818:5: note: in expansion of macro ‘GST_WARNING’ 818 | GST_WARNING ("Missing %s tag", dirref_str); | ^~~~~~~~~~~ ../gst-libs/gst/tag/gstxmptag.c:818:27: note: format string is defined here 818 | GST_WARNING ("Missing %s tag", dirref_str); | ^~ In file included from ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gst.h:55, from ../gst-libs/gst/tag/tag.h:25, from ../gst-libs/gst/tag/gstxmptag.c:39: ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstinfo.h:645:5: error: ‘%s’ directive argument is null [-Werror=format-overflow=] 645 | gst_debug_log ((cat), (level), __FILE__, GST_FUNCTION, __LINE__, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 646 | (GObject *) (object), __VA_ARGS__); \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstinfo.h:1068:27: note: in expansion of macro ‘GST_CAT_LEVEL_LOG’ 1068 | #define GST_WARNING(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_WARNING, NULL, __VA_ARGS__) | ^~~~~~~~~~~~~~~~~ ../gst-libs/gst/tag/gstxmptag.c:814:5: note: in expansion of macro ‘GST_WARNING’ 814 | GST_WARNING ("Missing %s tag", dir_str); | ^~~~~~~~~~~ ../gst-libs/gst/tag/gstxmptag.c:814:27: note: format string is defined here 814 | GST_WARNING ("Missing %s tag", dir_str); | ^~ In file included from ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gst.h:55, from ../gst-libs/gst/gl/gstgl_fwd.h:24, from ../gst-libs/gst/gl/gl.h:24, from ../gst-libs/gst/gl/gstglsl.c:25: ../gst-libs/gst/gl/gstglsl.c: In function ‘gst_glsl_version_profile_from_string’: ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstinfo.h:645:5: error: ‘%s’ directive argument is null [-Werror=format-overflow=] 645 | gst_debug_log ((cat), (level), __FILE__, GST_FUNCTION, __LINE__, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 646 | (GObject *) (object), __VA_ARGS__); \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstinfo.h:1068:27: note: in expansion of macro ‘GST_CAT_LEVEL_LOG’ 1068 | #define GST_WARNING(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_WARNING, NULL, __VA_ARGS__) | ^~~~~~~~~~~~~~~~~ ../gst-libs/gst/gl/gstglsl.c:333:7: note: in expansion of macro ‘GST_WARNING’ 333 | GST_WARNING ("Invalid preprocesser directive detected: %s", version_s); | ^~~~~~~~~~~ ../gst-libs/gst/gl/gstglsl.c:333:62: note: format string is defined here 333 | GST_WARNING ("Invalid preprocesser directive detected: %s", version_s); | ^~ In function ‘print_stream_info’, inlined from ‘print_topology’ at ../tools/gst-discoverer.c:352:3: ../tools/gst-discoverer.c:316:3: error: ‘%s’ directive argument is null [-Werror=format-overflow=] 316 | g_print ("%*s%s: %s\n", 2 * GPOINTER_TO_INT (depth), " ", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 317 | gst_discoverer_stream_info_get_stream_type_nick (info), desc); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-discoverer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gst-discoverer.c b/tools/gst-discoverer.c
index 21ff363f4..c063c49e5 100644
--- a/tools/gst-discoverer.c
+++ b/tools/gst-discoverer.c
@@ -314,7 +314,8 @@ print_stream_info (GstDiscovererStreamInfo * info, void *depth)
}
g_print ("%*s%s: %s\n", 2 * GPOINTER_TO_INT (depth), " ",
- gst_discoverer_stream_info_get_stream_type_nick (info), desc);
+ gst_discoverer_stream_info_get_stream_type_nick (info),
+ GST_STR_NULL (desc));
if (desc) {
g_free (desc);