From 5c3ae3893ab850001ed0fad55139b8a3484098fa Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Mon, 26 Aug 2019 22:36:25 +1000 Subject: [PATCH] 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); ^~~ --- libs/gst/check/libcheck/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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