diff --git a/GNUmakefile b/GNUmakefile index 2e069be6..414eb5f3 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -55,6 +55,7 @@ CFLAGS += \ -Wall \ -Wextra \ -Wno-unused-parameter \ + -Wno-unknown-warning-option \ -MMD \ -MP \ -ffunction-sections \ @@ -502,6 +503,7 @@ $(UV_OBJS): CFLAGS += \ -Wno-unused-result \ -Wno-unused-variable $(UV_OBJS): CFLAGS := $(filter-out -flto,$(CFLAGS)) +$(filter out/win%,$(UV_OBJS)): CFLAGS += -Wno-cast-function-type ifeq ($(UNAME_S),Linux) $(UV_OBJS): CFLAGS += \ -D_GNU_SOURCE @@ -577,6 +579,7 @@ ifneq ($(UNAME_S),OpenBSD) $(filter-out $(BUILD_DIR)/win%,$(SODIUM_OBJS)): CFLAGS += \ -DHAVE_ALLOCA_H endif +$(SODIUM_OBJS): CFLAGS := $(filter-out -flto,$(CFLAGS)) SQLITE_SOURCES := deps/sqlite/sqlite3.c SQLITE_OBJS := $(call get_objs,SQLITE_SOURCES)