[gtk-vnc] build: disable -Wbad-function-cast



commit 479f88a8a576d2451e9c7f5a29e54716aa8b4446
Author: Fabiano Fidêncio <fidencio redhat com>
Date:   Tue Jan 6 11:31:16 2015 +0100

    build: disable -Wbad-function-cast
    
    Due to a change in glib headers, gtk-vnc build is broken:
    
      In file included from /usr/include/glib-2.0/glib/gthread.h:32:0,
                       from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                       from /usr/include/glib-2.0/glib.h:32,
                       from /usr/include/glib-2.0/gobject/gbinding.h:28,
                       from /usr/include/glib-2.0/glib-object.h:23,
                       from vncbaseaudio.h:24,
                       from vncbaseaudio.c:25:
      vncbaseaudio.c: In function 'vnc_base_audio_get_type':
      /usr/include/glib-2.0/glib/gatomic.h:108:5: error: cast from function call of type 'long unsigned int' 
to non-matching type 'void *' [-Werror=bad-function-cast]
           (gpointer) __atomic_load_8 ((atomic), __ATOMIC_SEQ_CST);                 \
           ^
      /usr/include/glib-2.0/glib/gthread.h:250:7: note: in expansion of macro 'g_atomic_pointer_get'
           (!g_atomic_pointer_get (location) &&                             \
             ^
      /usr/include/glib-2.0/gobject/gtype.h:1697:7: note: in expansion of macro 'g_once_init_enter'
         if (g_once_init_enter (&g_define_type_id__volatile))  \
             ^
      /usr/include/glib-2.0/gobject/gtype.h:1476:60: note: in expansion of macro 
'_G_DEFINE_TYPE_EXTENDED_BEGIN'
       #define G_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_)     _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, 
T_P, _f_) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
                                                                  ^
      vncbaseaudio.c:40:1: note: in expansion of macro 'G_DEFINE_TYPE_EXTENDED'
       G_DEFINE_TYPE_EXTENDED(VncBaseAudio, vnc_base_audio, G_TYPE_OBJECT, 0,
       ^
      cc1: all warnings being treated as errors
      make[3]: *** [libgvnc_1_0_la-vncbaseaudio.lo] Error 1
      make[2]: *** [all] Error 2
      make[1]: *** [all-recursive] Error 1
      make: *** [all] Error 2
    
    For now, lets remove the -Wbad-function-cast from manywarnings.m4.

 m4/manywarnings.m4 |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/m4/manywarnings.m4 b/m4/manywarnings.m4
index 3e6dd21..7bb25ab 100644
--- a/m4/manywarnings.m4
+++ b/m4/manywarnings.m4
@@ -110,7 +110,6 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC],
     -Wall \
     -Warray-bounds \
     -Wattributes \
-    -Wbad-function-cast \
     -Wbuiltin-macro-redefined \
     -Wcast-align \
     -Wchar-subscripts \


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