summaryrefslogtreecommitdiffstats
path: root/m4/spice-compile-warnings.m4
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-03-14 15:22:48 +0100
committerHans de Goede <hdegoede@redhat.com>2012-03-14 15:22:48 +0100
commit8778bf016d9e8345ae8e011d49c2219f818c45f2 (patch)
tree06d1634c72d93b6cd9bfad147dd00f041df4777a /m4/spice-compile-warnings.m4
parent434adeb05b0d8aef0d983b346bd820287db22eae (diff)
downloadspice-gtk-8778bf016d9e8345ae8e011d49c2219f818c45f2.tar.gz
spice-gtk-8778bf016d9e8345ae8e011d49c2219f818c45f2.tar.xz
spice-gtk-8778bf016d9e8345ae8e011d49c2219f818c45f2.zip
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 <hdegoede@redhat.com>
Diffstat (limited to 'm4/spice-compile-warnings.m4')
-rw-r--r--m4/spice-compile-warnings.m44
1 files changed, 4 insertions, 0 deletions
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])