[PATCH spice-server v2 2/2] build: Disable some new added warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 m4/spice-compile-warnings.m4 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Changes since v1:
- use m4/spice-compile-warnings.m4 instead of changing
  m4/manywarnings.m4.

diff --git a/m4/spice-compile-warnings.m4 b/m4/spice-compile-warnings.m4
index b0e9554..bd08f3f 100644
--- a/m4/spice-compile-warnings.m4
+++ b/m4/spice-compile-warnings.m4
@@ -61,8 +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"
+    dontwarn="$dontwarn -Wshift-overflow=2"
 
-    # We want to enable thse, but need to sort out the
+    # We want to enable these, but need to sort out the
     # decl mess with  gtk/generated_*.c
     dontwarn="$dontwarn -Wmissing-declarations"
 
-- 
2.7.4

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]