Skip to content

Commit

Permalink
Makefile: Add -Wnocast-function-type for compilation on gcc8.
Browse files Browse the repository at this point in the history
Older GCC versions do not warn for disabled warnings they do not know yet.
This is needed to compile with gcc8.
  • Loading branch information
UweBonnes committed Jan 16, 2019
1 parent 0b28232 commit a6b75bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ endif

OPT_FLAGS ?= -O2

CFLAGS += -Wall -Wextra -Werror -Wno-char-subscripts\
CFLAGS += -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type \
$(OPT_FLAGS) -std=gnu99 -g3 -MD \
-I. -Iinclude -Iplatforms/common -I$(PLATFORM_DIR)
LDFLAGS += $(OPT_FLAGS)
Expand Down

0 comments on commit a6b75bb

Please sign in to comment.