Skip to content

Commit

Permalink
Make function defintions correct (void for 0 arguments).
Browse files Browse the repository at this point in the history
Also -O2.
  • Loading branch information
noncombatant committed Nov 17, 2018
1 parent 2db2e67 commit 3a82850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CFLAGS = -Weverything -Werror -O0 -ansi -pedantic -std=c11 -Wno-padded
CFLAGS = -Weverything -Werror -O2 -ansi -pedantic -std=c11 -Wno-padded
LDFLAGS = -lncurses

robotfindskitten: robotfindskitten.c
Expand Down
4 changes: 2 additions & 2 deletions robotfindskitten.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static int RandomX(void) {
return FrameThickness + (random() % (GameState.columns - FrameThickness * 2));
}

static int RandomY() {
static int RandomY(void) {
return HeaderSize + FrameThickness +
(random() % (GameState.lines - HeaderSize - FrameThickness * 2));
}
Expand Down Expand Up @@ -305,7 +305,7 @@ static void ShowMessage(const char* message) {
refresh();
}

static void RedrawScreen() {
static void RedrawScreen(void) {
if (GameState.screen_has_color) {
attrset(COLOR_PAIR(White));
}
Expand Down

0 comments on commit 3a82850

Please sign in to comment.