[gtk-vnc] Disable -Wbad-function-cast for glib



commit e7964d7616f43ac18a72089d2db9566af87d5347
Author: Daniel P. Berrange <berrange redhat com>
Date:   Fri Feb 6 11:39:18 2015 +0000

    Disable -Wbad-function-cast for glib
    
    The glib atomic access macros cause compiler warnings when
    -Wbad-function-cast is in effect. There is no practical
    workaround so the warning must be disabled.
    
    Signed-off-by: Daniel P. Berrange <berrange redhat com>

 m4/gtk-vnc-warnings.m4 |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/m4/gtk-vnc-warnings.m4 b/m4/gtk-vnc-warnings.m4
index e01d9d6..4b6416f 100644
--- a/m4/gtk-vnc-warnings.m4
+++ b/m4/gtk-vnc-warnings.m4
@@ -45,6 +45,8 @@ AC_DEFUN([GTK_VNC_COMPILE_WARNINGS],[
     dontwarn="$dontwarn -Wstrict-prototypes"
     # Generated vncmarshal.c file :-(
     dontwarn="$dontwarn -Wunused-macros"
+    # glib atomic access
+    dontwarn="$dontwarn -Wbad-function-cast"
     # Get all possible GCC warnings
     gl_MANYWARN_ALL_GCC([maybewarn])
 


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