Makefile: Add -Wnocast-function-type for compilation on gcc8.

Older GCC versions do not warn for disabled warnings they do not know yet.
This is needed to compile with gcc8.
This commit is contained in:
Uwe Bonnes 2018-12-23 16:34:59 +01:00
parent 0b28232f72
commit a6b75bb4ef
1 changed files with 1 additions and 1 deletions

View File

@ -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)