libcheck: fix macos werror build
authorMatthew Waters <matthew@centricular.com>
Fri, 30 Aug 2019 02:04:40 +0000 (12:04 +1000)
committerMatthew Waters <matthew@centricular.com>
Fri, 30 Aug 2019 02:05:40 +0000 (12:05 +1000)
../libs/gst/check/libcheck/check.c:617:15: error: result of comparison of constant 4294967295 with expression of type 'clockid_t' is always false [-Werror,-Wtautological-constant-out-of-range-compare]
  if (clockid == -1) {
      ~~~~~~~ ^  ~~

libs/gst/check/libcheck/meson.build

index 4e6b1e31f25f480fd5863e556989108b3e0a4f6f..964165379e6dddd3ed536ab83055fd1b4c36ee81 100644 (file)
@@ -73,7 +73,8 @@ foreach arg : [
   '-Wno-missing-declarations',
   '-Wno-old-style-definition',
   '-Wno-declaration-after-statement',
-  '-Wno-format-nonliteral']
+  '-Wno-format-nonliteral',
+  '-Wno-tautological-constant-out-of-range-compare']
   if cc.has_argument(arg)
     no_warn_args += [arg]
   endif