[Spice-devel] [PATCH spice-gtk 2/3] tests: Add missing static statement

Eduardo Lima (Etrunko) etrunko at redhat.com
Thu Sep 27 14:26:59 UTC 2018


Fixes the following warnings:

../tests/usb-acl-helper.c:29:10: warning: no previous prototype for ‘abort_test’ [-Wmissing-prototypes]
 gboolean abort_test(gpointer user_data)
          ^~~~~~~~~~
../tests/usb-acl-helper.c:37:10: warning: no previous prototype for ‘cancel_test’ [-Wmissing-prototypes]
 gboolean cancel_test(gpointer user_data)
          ^~~~~~~~~~~

Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
---
 tests/usb-acl-helper.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/usb-acl-helper.c b/tests/usb-acl-helper.c
index 2b28ade..b24f452 100644
--- a/tests/usb-acl-helper.c
+++ b/tests/usb-acl-helper.c
@@ -26,7 +26,7 @@ typedef struct {
     guint timeout_source;
 } Fixture;
 
-gboolean abort_test(gpointer user_data)
+static gboolean abort_test(gpointer user_data)
 {
     Fixture *fixture = user_data;
     g_cancellable_cancel(fixture->cancellable);
@@ -34,7 +34,7 @@ gboolean abort_test(gpointer user_data)
     return G_SOURCE_REMOVE;
 }
 
-gboolean cancel_test(gpointer user_data)
+static gboolean cancel_test(gpointer user_data)
 {
     Fixture *fixture = user_data;
     g_cancellable_cancel(fixture->cancellable);
-- 
2.17.1



More information about the Spice-devel mailing list