[virt-tools-list] [virt-viewer] session-vnc: Avoid depracated warnings on this file

Fabiano Fidêncio fidencio at redhat.com
Fri Feb 26 16:22:01 UTC 2016


This is a temporary solution for using autobuild.sh, as commit df403f5
introduced the -Wdeprecated-declarations and gtk-vnc provides callbacks
using a deprecated structure (GValueArray), forcing virt-viewer to keep
using deprecated methods (g_value_array_*).

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 src/virt-viewer-session-vnc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/virt-viewer-session-vnc.c b/src/virt-viewer-session-vnc.c
index 3321fc2..ccb08b2 100644
--- a/src/virt-viewer-session-vnc.c
+++ b/src/virt-viewer-session-vnc.c
@@ -24,6 +24,8 @@
 
 #include <config.h>
 
+#define GLIB_DISABLE_DEPRECATION_WARNINGS
+
 #include "virt-viewer-auth.h"
 #include "virt-viewer-session-vnc.h"
 #include "virt-viewer-display-vnc.h"
-- 
2.5.0




More information about the virt-tools-list mailing list