Skip to content

Commit 647e653

Browse files
kienvomariobehling
andauthored
fix: mismatched function prototypes (#69)
Co-authored-by: Mario Behling <[email protected]>
1 parent 68148af commit 647e653

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ C_INCLUDES = \
131131
ASFLAGS = $(MCU) $(AS_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections
132132

133133
CFLAGS = $(MCU) $(C_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections
134+
CFLAGS += -Werror=implicit-function-declaration
134135

135136
ifeq ($(DEBUG), 1)
136137
CFLAGS += -g -gdwarf-2 -DDEBUG=$(DEBUG)

src/animation.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ void ani_shift_y(bm_t *bm, uint16_t *fb, int dir, int frame);
1818
void ani_scroll_x(bm_t *bm, uint16_t *fb, int dir);
1919
void ani_scroll_y(bm_t *bm, uint16_t *fb);
2020

21-
void ani_scroll_left(bm_t *bm, uint16_t *fb);
22-
void ani_scroll_right(bm_t *bm, uint16_t *fb);
23-
void ani_scroll_up(bm_t *bm, uint16_t *fb);
24-
void ani_scroll_down(bm_t *bm, uint16_t *fb);
25-
void ani_fixed(bm_t *bm, uint16_t *fb);
26-
void ani_laser(bm_t *bm, uint16_t *fb);
27-
void ani_snowflake(bm_t *bm, uint16_t *fb);
28-
void ani_animation(bm_t *bm, uint16_t *fb);
29-
void ani_picture(bm_t *bm, uint16_t *fb);
21+
int ani_scroll_left(bm_t *bm, uint16_t *fb);
22+
int ani_scroll_right(bm_t *bm, uint16_t *fb);
23+
int ani_scroll_up(bm_t *bm, uint16_t *fb);
24+
int ani_scroll_down(bm_t *bm, uint16_t *fb);
25+
int ani_fixed(bm_t *bm, uint16_t *fb);
26+
int ani_laser(bm_t *bm, uint16_t *fb);
27+
int ani_snowflake(bm_t *bm, uint16_t *fb);
28+
int ani_animation(bm_t *bm, uint16_t *fb);
29+
int ani_picture(bm_t *bm, uint16_t *fb);
3030

3131
void ani_marque(bm_t *bm, uint16_t *fb, int step);
3232
void ani_flash(bm_t *bm, uint16_t *fb, int step);

0 commit comments

Comments
 (0)