[virt-tools-list] [virt-viewer PATCH 3/5] Fix prototype of function with no arguments

Daniel P. Berrangé berrange at redhat.com
Wed Feb 13 17:04:39 UTC 2019


Modern C standard requires the function to be "void"

Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
 src/virt-viewer-app.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index 03a7c00..c46ce15 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -315,7 +315,7 @@ virt_viewer_app_quit(VirtViewerApp *self)
 }
 
 static gint
-get_n_client_monitors()
+get_n_client_monitors(void)
 {
     return gdk_screen_get_n_monitors(gdk_screen_get_default());
 }
-- 
2.20.1




More information about the virt-tools-list mailing list