diff options
author | emersion <contact@emersion.fr> | 2019-02-28 23:15:34 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-03-01 09:20:23 +0100 |
commit | 5445d8aad0112dab3ed798c39bf6b22f2a4eebd1 (patch) | |
tree | cddeb6dd5665e81d815fe51650fb8bb69b88f3dd /examples | |
parent | 4135fafecd5c9a8daafb0caec96089cfa0926c6e (diff) | |
download | wlroots-5445d8aad0112dab3ed798c39bf6b22f2a4eebd1.tar.xz |
meson: enable more compiler warnings
Diffstat (limited to 'examples')
-rw-r--r-- | examples/input-method.c | 4 | ||||
-rw-r--r-- | examples/text-input.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/input-method.c b/examples/input-method.c index 4e375306..9276e159 100644 --- a/examples/input-method.c +++ b/examples/input-method.c @@ -176,7 +176,7 @@ static void timer_arm(unsigned seconds) { } } -static void do_updates() { +static void do_updates(void) { printf("Update %d\n", update_stage); switch (update_stage) { case 0: @@ -240,7 +240,7 @@ static void do_updates() { }; } -static void handle_timer() { +static void handle_timer(void) { printf("Timer dispatched at %d\n", update_stage); do_updates(); } diff --git a/examples/text-input.c b/examples/text-input.c index 3ccd99a0..ac3c8a44 100644 --- a/examples/text-input.c +++ b/examples/text-input.c @@ -102,7 +102,7 @@ static size_t utf8_offset(char *utf8_str, size_t byte_offset) { } // TODO: would be nicer to have this text display inside the window -static void show_status() { +static void show_status(void) { printf("State %d:", serial); if (!enabled) { printf(" disabled"); |