[Spice-devel] [spice-server 1/2] build: Disable some newly added warnings

Christophe Fergeau cfergeau at redhat.com
Thu Nov 10 11:11:57 UTC 2016


-Wshift-overflow causes an error to be detected in Glib headers.
-Wformat-signedness and -Wnull-dereference probably could be
fixed but currently they produce lot of errors.

Based on a patch from Frediano.
---
 m4/spice-compile-warnings.m4 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/m4/spice-compile-warnings.m4 b/m4/spice-compile-warnings.m4
index b0e9554..89bc992 100644
--- a/m4/spice-compile-warnings.m4
+++ b/m4/spice-compile-warnings.m4
@@ -61,6 +61,11 @@ AC_DEFUN([SPICE_COMPILE_WARNINGS],[
     dontwarn="$dontwarn -Winline"
     dontwarn="$dontwarn -Wbad-function-cast"
     dontwarn="$dontwarn -Wshadow"
+    dontwarn="$dontwarn -Wformat-signedness"
+    dontwarn="$dontwarn -Wnull-dereference"
+
+    # This causes an error to be detected in glib headers
+    dontwarn="$dontwarn -Wshift-overflow=2"
 
     # We want to enable thse, but need to sort out the
     # decl mess with  gtk/generated_*.c
-- 
2.9.3



More information about the Spice-devel mailing list