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

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

 



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@xxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]