[Spice-devel] [PATCH spice-gtk 6/7] build-sys: -Wshift-overflow=2

Marc-André Lureau marcandre.lureau at gmail.com
Mon May 30 17:31:20 UTC 2016


manywarnings.m4 update will bring new flags that fail with some
glib/gst headers.

Signed-off-by: Marc-André Lureau <marcandre.lureau at gmail.com>
---
 configure.ac | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 8f1e91b..3fe8055 100644
--- a/configure.ac
+++ b/configure.ac
@@ -581,7 +581,10 @@ SPICE_CHECK_LZ4
 dnl ===========================================================================
 dnl check compiler flags
 
-SPICE_COMPILE_WARNINGS
+# some glib/gstreamer enums use 1 << 31
+dontwarn="-Wshift-overflow=2"
+
+SPICE_COMPILE_WARNINGS([$dontwarn])
 
 SPICE_CFLAGS="$SPICE_CFLAGS $WARN_CFLAGS"
 
-- 
2.7.4



More information about the Spice-devel mailing list