Mostly so that they don't turn into errors when building from source:
-Wno-missing-field-initializers:
Because this has to be close to the most stupid warning gcc has ever produced
-Wno-deprecated-declarations
Because we use some deprecated functions to avoid #ifdef hell while maintaining
compat with older gtk / glib versions

Signed-off-by: Hans de Goede <hdego...@redhat.com>
---
 m4/spice-compile-warnings.m4 |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/m4/spice-compile-warnings.m4 b/m4/spice-compile-warnings.m4
index b98e2ef..1ecae2a 100644
--- a/m4/spice-compile-warnings.m4
+++ b/m4/spice-compile-warnings.m4
@@ -81,9 +81,13 @@ AC_DEFUN([SPICE_COMPILE_WARNINGS],[
     # So we have -W enabled, and then have to explicitly turn off...
     gl_WARN_ADD([-Wno-sign-compare])
     gl_WARN_ADD([-Wno-unused-parameter])
+    gl_WARN_ADD([-Wno-missing-field-initializers])
     # We can't enable this due to horrible spice_usb_device_get_description
     # signature
     gl_WARN_ADD([-Wno-format-nonliteral])
+    # We use some deprecated functions to avoid #ifdef hell while maintaining
+    # compat with older gtk / glib versions
+    gl_WARN_ADD([-Wno-deprecated-declarations])
 
 
 
-- 
1.7.9.3

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to