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);
                            ^~~
This commit is contained in:
Matthew Waters 2019-08-26 22:36:25 +10:00
parent 9e69c90869
commit 5c3ae3893a

View file

@ -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