[Spice-devel] [PATCH spice-gtk] fixup! Add support for building with meson/ninja

Eduardo Lima (Etrunko) etrunko at redhat.com
Mon Aug 13 12:56:52 UTC 2018


Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
---
 meson.build | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index 2a72e79..52339b8 100644
--- a/meson.build
+++ b/meson.build
@@ -29,7 +29,8 @@ spice_gtk_global_cflags = ['-DHAVE_CONFIG_H',
                            '-Wall',
                            '-Wextra',
                            '-Wno-sign-compare',
-                           '-Wno-unused-parameter']
+                           '-Wno-unused-parameter',
+                           '-Wno-cast-function-type']
 
 # other global vars
 compiler = meson.get_compiler('c')
@@ -386,7 +387,7 @@ if spice_gtk_has_gtk
                               '-DGDK_VERSION_MAX_ALLOWED=@0@'.format(gtk_encoded_version)]
 endif
 
-foreach arg : spice_gtk_global_cflags
+foreach arg : compiler.get_supported_arguments(spice_gtk_global_cflags)
   add_project_arguments(arg, language : 'c')
 endforeach
 
-- 
2.14.4



More information about the Spice-devel mailing list