From 420ac2c8f2307ddcbe551972544bbe11f05ee7ff Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 27 May 2024 19:13:02 +0100 Subject: Avoid function declarator with no prototype errors This is for SDCC 4.4.0 at least. --- game/src/game.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'game/src/game.h') diff --git a/game/src/game.h b/game/src/game.h index 5f5d603..1354522 100644 --- a/game/src/game.h +++ b/game/src/game.h @@ -80,16 +80,16 @@ struct entity uint8_t flags; uint8_t delay; uint8_t frame; - void (*update)(); + void (*update)(void); }; -void run_game(); +void run_game(void); -void update_player(); -void update_enemy(); +void update_player(void); +void update_enemy(void); -void draw_map(); -void draw_hud(); +void draw_map(void); +void draw_hud(void); void erase_battery(uint8_t x, uint8_t y); -- cgit v1.2.3