From a6b75bb4ef4da9d7d037a0d930fa2b64b9e84b61 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Sun, 23 Dec 2018 16:34:59 +0100 Subject: [PATCH] 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. --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index d416ddb..c4e0bd7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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)