From 16e5e9541b3de49e397a3d2caa3212db25487648 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 20 Nov 2019 00:45:19 +0100 Subject: Add -Wmissing-prototypes This requires functions without a prototype definition to be static. This allows to detect dead code, export less symbols and put shared functions in headers. --- backend/libinput/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/libinput/events.c') diff --git a/backend/libinput/events.c b/backend/libinput/events.c index 19c66f38..fa29ef93 100644 --- a/backend/libinput/events.c +++ b/backend/libinput/events.c @@ -9,7 +9,7 @@ #include "backend/libinput.h" #include "util/signal.h" -struct wlr_libinput_input_device *get_libinput_device_from_device( +static struct wlr_libinput_input_device *get_libinput_device_from_device( struct wlr_input_device *wlr_dev) { assert(wlr_input_device_is_libinput(wlr_dev)); return (struct wlr_libinput_input_device *)wlr_dev; -- cgit v1.2.3