summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2026-03-11 15:54:01 +0100
committerjvoisin2026-03-13 01:11:35 +0100
commitf66db750ed01f52707a37e05d86af4f59019f473 (patch)
tree70b971afd6d0d4ea527d7b2ee25b0e260846dd3d
parent434d47d2b77b5d5e7a8d0ecc8bfa435579c9a008 (diff)
Add some compilers flags to the C++ testsuite
Notably -Wno-fortify-source, to prevent clang from using its own fortify implementation. Co-Authored-By: Sertonix
-rw-r--r--tests/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/Makefile b/tests/Makefile
index f2428f8..81f7f6e 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -3,7 +3,9 @@ _FORTIFY_SOURCE ?= 3
3CFLAGS ?= -std=gnu99 3CFLAGS ?= -std=gnu99
4CFLAGS += -I../include/ -D_FORTIFY_SOURCE=$(_FORTIFY_SOURCE) -static -O2 -Wall -Wextra -Werror -Werror=pointer-arith 4CFLAGS += -I../include/ -D_FORTIFY_SOURCE=$(_FORTIFY_SOURCE) -static -O2 -Wall -Wextra -Werror -Werror=pointer-arith
5CFLAGS += -Wno-format -Wno-array-bounds -Wno-shift-count-negative -Wno-unused-variable -Wno-unused-parameter 5CFLAGS += -Wno-format -Wno-array-bounds -Wno-shift-count-negative -Wno-unused-variable -Wno-unused-parameter
6CXXFLAGS += -D_FORTIFY_SOURCE=$(_FORTIFY_SOURCE) 6CXXFLAGS += -D_FORTIFY_SOURCE=$(_FORTIFY_SOURCE) -O2
7CXXFLAGS += -Wno-format -Wno-array-bounds -Wno-shift-count-negative -Wno-unused-variable -Wno-unused-parameter
8
7 9
8RUNTIME_TARGETS= \ 10RUNTIME_TARGETS= \
9 test_FD_CLR_SETSIZE \ 11 test_FD_CLR_SETSIZE \
@@ -118,7 +120,7 @@ clang: CXX=clang++
118clang: CXXFLAGS+=-I/usr/include/$(MACHINE)-linux-musl 120clang: CXXFLAGS+=-I/usr/include/$(MACHINE)-linux-musl
119clang: CXXFLAGS+=-I../$(MACHINE)-linux-musl-native/include/ 121clang: CXXFLAGS+=-I../$(MACHINE)-linux-musl-native/include/
120clang: CXXFLAGS+=-I$(MACHINE)-linux-musl-native/include/ 122clang: CXXFLAGS+=-I$(MACHINE)-linux-musl-native/include/
121clang: CXXFLAGS+=-nostdinc 123clang: CXXFLAGS+=-nostdinc -Wno-fortify-source
122clang: $(RUNTIME_TARGETS) cpp 124clang: $(RUNTIME_TARGETS) cpp
123 125
124all: gcc 126all: gcc