meson: enable more compiler warnings

This commit is contained in:
emersion 2019-02-28 23:15:34 +01:00
parent 4135fafecd
commit 5445d8aad0
7 changed files with 34 additions and 21 deletions

View file

@ -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();
}

View file

@ -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");