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. --- src/spman/spman.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/spman') diff --git a/src/spman/spman.c b/src/spman/spman.c index ba8a939..8bb8ba1 100644 --- a/src/spman/spman.c +++ b/src/spman/spman.c @@ -15,7 +15,7 @@ struct sprite_attr sp_buffer[SPMAN_MAX_SPRITES * 2]; uint8_t sp_pat_map[SPMAN_MAX_PATTERNS]; uint8_t sp_last_pat; -void spman_init() +void spman_init(void) { sp_last_pat = 0; sp_idx = 0; @@ -49,7 +49,7 @@ uint8_t spman_alloc_pat(uint8_t type, uint8_t *data, uint8_t len, uint8_t flip) return sp_pat_map[type] * 4; } -void spman_sprite_flush() +void spman_sprite_flush(void) { sp_last_fixed_sprite = 0; sp_last_sprite = 0; @@ -83,7 +83,7 @@ static const struct sprite_attr hide = { 208, 0, 0, 0 }; static uint8_t *p; -void spman_update() +void spman_update(void) { p = (uint8_t*)SPMAN_SPR_ATTRS; @@ -113,7 +113,7 @@ void spman_update() spman_sprite_flush(); } -void spman_hide_all_sprites() +void spman_hide_all_sprites(void) { ubox_wait_vsync(); ubox_write_vm((uint8_t *)SPMAN_SPR_ATTRS, 4, (uint8_t *)hide); -- cgit v1.2.3