Skip to content

Commit

Permalink
Enable -Wstrict-prototypes
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
  • Loading branch information
smcameron committed May 20, 2023
1 parent cc14d47 commit 2c93d0c
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 67 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ BUILD_CC ?= ${CC}
#OPTIMIZE_FLAG=-O3 -pedantic -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
CFLAGS ?= -O3 -pedantic
OPTIMIZE_FLAG = ${CFLAGS} ${CPPFLAGS}
WARNFLAG=-pedantic -W -Wall -Wextra
WARNFLAG=-pedantic -W -Wall -Wextra -Wstrict-prototypes

LDFLAGS += ${PROFILE_FLAG}

Expand Down
2 changes: 1 addition & 1 deletion joystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ void set_joystick_x_axis(int axis)
/* fixme: add axis selection */
}

void close_joystick()
void close_joystick(void)
{
if(joystick) {
IDirectInputDevice2_Unacquire(joystick);
Expand Down
2 changes: 1 addition & 1 deletion joystick.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ extern int open_joystick(char *joystick_device, void *window);
extern int read_joystick_event(struct js_event *jse);
extern void set_joystick_y_axis(int axis);
extern void set_joystick_x_axis(int axis);
extern void close_joystick();
extern void close_joystick(void);
extern int get_joystick_status(struct wwvi_js_event *wjse);

#endif
Loading

0 comments on commit 2c93d0c

Please sign in to comment.