summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2017-05-10 12:39:26 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2017-05-10 12:52:16 +1000
commit02fca305edb5762559df4c0ba0cd30d931a5fcc4 (patch)
tree271997892ac67e5de00d3db01e747783d10a35e4 /src
parent3925936969e993709c832731343ace3ff5e695d0 (diff)
Fix va_start compiler warning
../src/libinput.c:56:17: warning: passing an object that undergoes default argument promotion to 'va_start' has undefined behavior [-Wvarargs] The enum's size is compiler-defined, so the enum gets promoted to whatever the compiler chose. That promotion is undefined, so let's use an int here. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Armin Krezović <krezovic.armin@gmail.com> Tested-by: Armin Krezović <krezovic.armin@gmail.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Diffstat (limited to 'src')
-rw-r--r--src/libinput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libinput.c b/src/libinput.c
index 472b1c0..23255b0 100644
--- a/src/libinput.c
+++ b/src/libinput.c
@@ -46,7 +46,7 @@
static inline bool
check_event_type(struct libinput *libinput,
const char *function_name,
- enum libinput_event_type type_in,
+ unsigned int type_in,
...)
{
bool rc = false;