From 8778bf016d9e8345ae8e011d49c2219f818c45f2 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Wed, 14 Mar 2012 15:22:48 +0100 Subject: buildsys: Disable some warnings 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 --- 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]) -- cgit