From 502fe43959b7dba5d894fae135b04b7270dd9b4e Mon Sep 17 00:00:00 2001 From: angie Date: Wed, 3 Apr 2024 12:43:12 -0300 Subject: [PATCH] only remove warning on gcc --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 817b03b1..916840a5 100644 --- a/Makefile +++ b/Makefile @@ -22,12 +22,11 @@ WARNINGS += -Wformat=2 -Wundef WARNINGS += -Werror=vla -Werror=switch -Werror=implicit-fallthrough -Werror=unused-function WARNINGS += -Werror=unused-parameter -Werror=shadow -Werror=switch -Werror=double-promotion WARNINGS_C := -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -WARNINGS_C += -Wno-nonnull-compare WARNINGS += -Werror=type-limits WARNINGS_CXX := ifeq ($(CC),gcc) - WARNINGS += -Wno-cast-function-type -Wformat-truncation -Wformat-overflow + WARNINGS += -Wno-cast-function-type -Wformat-truncation -Wformat-overflow -Wno-nonnull-compare endif ifeq ($(DEBUG),0)