-Wzero-as-null-pointer-constant is valid for c only since GCC 15.2 (from what i see)

This commit is contained in:
indev committed 2026-01-11 00:49:48 +03:00
1 parent 291a4dbb25
commit 0914d5b8e2
1 file changed
+4 -1
+4 -1
View File
@@ -20,7 +20,10 @@ $(foreach v,$(join $(wordlist 2,$(_n),- $(gcc_versions)),\
CXXFLAGS+= -Wno-aggregate-return
# -W -Wno-unused
WFLAGS:=-Wall -Wno-trigraphs -Wnull-dereference -Wzero-as-null-pointer-constant
WFLAGS:=-Wall -Wno-trigraphs -Wnull-dereference
ifdef GCC152
WFLAGS+-Wzero-as-null-pointer-constant
endif
ifndef GCC295
#WFLAGS+=-Wno-packed
endif