[Spice-devel] [PATCH spice-gtk 2/2] buildsys: Disable some warnings
Hans de Goede
hdegoede at redhat.com
Wed Mar 14 07:27:11 PDT 2012
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 <hdegoede at 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
More information about the Spice-devel
mailing list