From 673d946275fdd82959b18ef1f318925f0d070b21 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 19 Jun 2017 10:37:36 +1000 Subject: evdev: default to log error priority Fixes compiler warning: evdev.c:2899:2: warning: 'pri' may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Peter Hutterer --- src/evdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/evdev.c b/src/evdev.c index f0f7906..a680414 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -2878,7 +2878,7 @@ libevdev_log_func(const struct libevdev *evdev, va_list args) { struct libinput *libinput = data; - enum libinput_log_priority pri; + enum libinput_log_priority pri = LIBEVDEV_LOG_ERROR; const char prefix[] = "libevdev: "; char fmt[strlen(format) + strlen(prefix) + 1]; -- cgit v1.2.3