directfb: suppress compiler warning from directfb headers
authorTim-Philipp Müller <tim@centricular.com>
Sat, 25 Jul 2020 18:36:10 +0000 (19:36 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 25 Jul 2020 18:47:43 +0000 (19:47 +0100)
On debian sid, directfb 1.7.7

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1467>

ext/directfb/meson.build
tests/examples/directfb/meson.build

index 2cc6f0d4c16537bdd2b7fe49e3fc2b97d93cc4c1..ac264c2bf6b59f5a6bbf5f0b5f2b7c9bb874f17f 100644 (file)
@@ -3,7 +3,7 @@ directfb_dep = dependency('directfb', version : '>= 0.9.24', required : get_opti
 if directfb_dep.found()
   gstdirectfb = library('gstdirectfb',
     'dfbvideosink.c',
-    c_args : gst_plugins_bad_args,
+    c_args : gst_plugins_bad_args + cc.get_supported_arguments('-Wno-redundant-decls'),
     include_directories : [configinc],
     dependencies : [gstvideo_dep, directfb_dep],
     install : true,
index 75fc145baf3fe4069f7126c7d1206e5c7072289c..563c7a16b7f1c1744fcfb58d01cc4a7bd0d0f9c4 100644 (file)
@@ -2,6 +2,6 @@ if directfb_dep.found()
   executable('gstdfb', 'gstdfb.c',
     include_directories : [configinc],
     dependencies : [gst_dep, directfb_dep, libm],
-    c_args : gst_plugins_bad_args,
+    c_args : gst_plugins_bad_args + cc.get_supported_arguments('-Wno-redundant-decls'),
     install: false)
 endif