[virt-tools-list] [virt-viewer][PATCH 1/2] virt-viewer-display-vnc: Include virt-viewer-util.h

Michal Privoznik mprivozn at redhat.com
Sat Jun 4 10:29:48 UTC 2016


In function virt_viewer_display_vnc_new() we are calling
virt_viewer_signal_connect_object() which is defined in
virt-viewer-util module. However, the header file for the module
is never included.

  CC       libvirt_viewer_la-virt-viewer-display-vnc.lo
virt-viewer-display-vnc.c: In function 'virt_viewer_display_vnc_new':
virt-viewer-display-vnc.c:251:5: warning: implicit declaration of function 'virt_viewer_signal_connect_object' [-Wimplicit-function-declaration]
     virt_viewer_signal_connect_object(app, "notify::enable-accel",
     ^
virt-viewer-display-vnc.c:251:5: warning: nested extern declaration of 'virt_viewer_signal_connect_object' [-Wnested-externs]

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 src/virt-viewer-display-vnc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/virt-viewer-display-vnc.c b/src/virt-viewer-display-vnc.c
index 730b5cb..390c366 100644
--- a/src/virt-viewer-display-vnc.c
+++ b/src/virt-viewer-display-vnc.c
@@ -26,6 +26,7 @@
 
 #include "virt-viewer-auth.h"
 #include "virt-viewer-display-vnc.h"
+#include "virt-viewer-util.h"
 
 #include <glib/gi18n.h>
 
-- 
2.8.3




More information about the virt-tools-list mailing list