From 5445d8aad0112dab3ed798c39bf6b22f2a4eebd1 Mon Sep 17 00:00:00 2001 From: emersion Date: Thu, 28 Feb 2019 23:15:34 +0100 Subject: meson: enable more compiler warnings --- backend/session/logind.c | 2 +- backend/wayland/wl_seat.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'backend') diff --git a/backend/session/logind.c b/backend/session/logind.c index 0bacfbcd..8f4e328d 100644 --- a/backend/session/logind.c +++ b/backend/session/logind.c @@ -440,7 +440,7 @@ static bool add_signal_matches(struct logind_session *session) { int ret; char str[256]; - const char *fmt = "type='signal'," + const char fmt[] = "type='signal'," "sender='org.freedesktop.login1'," "interface='org.freedesktop.login1.%s'," "member='%s'," diff --git a/backend/wayland/wl_seat.c b/backend/wayland/wl_seat.c index 1229a0ac..6c8eb4f3 100644 --- a/backend/wayland/wl_seat.c +++ b/backend/wayland/wl_seat.c @@ -194,7 +194,7 @@ static void keyboard_handle_keymap(void *data, struct wl_keyboard *wl_keyboard, // TODO: set keymap } -static uint32_t get_current_time_msec() { +static uint32_t get_current_time_msec(void) { struct timespec now; clock_gettime(CLOCK_MONOTONIC, &now); return now.tv_nsec / 1000; -- cgit v1.2.3