From 5951d7cd2d9fe99db17ca5e629cb4a5ca33c7a6a Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 25 Aug 2024 10:07:44 -0400 Subject: [PATCH] Kill some warnings. --- GNUmakefile | 3 +++ 1 file changed, 3 insertions(+) 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)