[PATCH libinput 3/8] test: fix compiler warnings for missing prototypes

Peter Hutterer peter.hutterer at who-t.net
Thu Jun 5 23:19:01 PDT 2014


litest-wacom-touch.c:31:6: warning: no previous prototype for
'litest_wacom_touch_setup' [-Wmissing-prototypes]

and similar

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 test/litest-synaptics-st.c | 3 ++-
 test/litest-synaptics.c    | 3 ++-
 test/litest-wacom-touch.c  | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/test/litest-synaptics-st.c b/test/litest-synaptics-st.c
index 4e2ee56..e18d2b2 100644
--- a/test/litest-synaptics-st.c
+++ b/test/litest-synaptics-st.c
@@ -28,7 +28,8 @@
 #include "litest-int.h"
 #include "libinput-util.h"
 
-void litest_synaptics_touchpad_setup(void)
+static void
+litest_synaptics_touchpad_setup(void)
 {
 	struct litest_device *d = litest_create_device(LITEST_SYNAPTICS_TOUCHPAD);
 	litest_set_current_device(d);
diff --git a/test/litest-synaptics.c b/test/litest-synaptics.c
index efa862b..e7ebbb6 100644
--- a/test/litest-synaptics.c
+++ b/test/litest-synaptics.c
@@ -28,7 +28,8 @@
 #include "litest-int.h"
 #include "libinput-util.h"
 
-void litest_synaptics_clickpad_setup(void)
+static void
+litest_synaptics_clickpad_setup(void)
 {
 	struct litest_device *d = litest_create_device(LITEST_SYNAPTICS_CLICKPAD);
 	litest_set_current_device(d);
diff --git a/test/litest-wacom-touch.c b/test/litest-wacom-touch.c
index b311882..a5da17f 100644
--- a/test/litest-wacom-touch.c
+++ b/test/litest-wacom-touch.c
@@ -28,7 +28,8 @@
 #include "litest-int.h"
 #include "libinput-util.h"
 
-void litest_wacom_touch_setup(void)
+static void
+litest_wacom_touch_setup(void)
 {
 	struct litest_device *d = litest_create_device(LITEST_WACOM_TOUCH);
 	litest_set_current_device(d);
-- 
1.9.3



More information about the wayland-devel mailing list