From: Matthew Waters Date: Mon, 26 Aug 2019 12:36:25 +0000 (+1000) Subject: check: fix werror build with clang X-Git-Tag: 1.19.3~1089 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c3ae3893ab850001ed0fad55139b8a3484098fa;p=platform%2Fupstream%2Fgstreamer.git check: fix werror build with clang Silence -Wformat-nonliteral warnings from the internal copy of libcheck ../subprojects/gstreamer/libs/gst/check/libcheck/check.c:379:29: warning: format string is not a string literal [-Wformat-nonliteral] vsnprintf (buf, BUFSIZ, msg, ap); ^~~ ../subprojects/gstreamer/libs/gst/check/libcheck/check_error.c:48:21: warning: format string is not a string literal [-Wformat-nonliteral] vfprintf (stderr, fmt, args); ^~~ ../subprojects/gstreamer/libs/gst/check/libcheck/check_str.c:92:29: warning: format string is not a string literal [-Wformat-nonliteral] n = vsnprintf (p, size, fmt, ap); ^~~ --- diff --git a/libs/gst/check/libcheck/meson.build b/libs/gst/check/libcheck/meson.build index 17d3f01812..4e6b1e31f2 100644 --- a/libs/gst/check/libcheck/meson.build +++ b/libs/gst/check/libcheck/meson.build @@ -72,7 +72,8 @@ foreach arg : [ '-Wno-missing-prototypes', '-Wno-missing-declarations', '-Wno-old-style-definition', - '-Wno-declaration-after-statement'] + '-Wno-declaration-after-statement', + '-Wno-format-nonliteral'] if cc.has_argument(arg) no_warn_args += [arg] endif