From 5445d8aad0112dab3ed798c39bf6b22f2a4eebd1 Mon Sep 17 00:00:00 2001
From: emersion <contact@emersion.fr>
Date: Thu, 28 Feb 2019 23:15:34 +0100
Subject: meson: enable more compiler warnings

---
 examples/input-method.c | 4 ++--
 examples/text-input.c   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

(limited to 'examples')

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");
-- 
cgit v1.2.3