summaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
authorjvoisin2026-03-13 01:07:17 +0100
committerjvoisin2026-03-13 01:11:26 +0100
commitc1642e5a43de3affa75d52c3577ee1be4c874a5d (patch)
tree2684196a7af91ff9b6c97a91e94fb92eb6ef9f24 /tests/Makefile
parent9db427391bb5dc5b2722345cb91edbba65c10623 (diff)
Fixes compilation with clang and -D_FORTIFY_SOURCE=2
This commit fixes the typo pass_object_size__ for pass_object_size. It also adds tests in the CI to prevent this from happening again. Ref https://clang.llvm.org/docs/AttributeReference.html#pass-object-size-pass-dynamic-object-size Co-Authored-By: Sertonix
Diffstat (limited to '')
-rw-r--r--tests/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile
index b71c004..f2428f8 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,7 +1,9 @@
1MACHINE := $(shell uname -m) 1MACHINE := $(shell uname -m)
2_FORTIFY_SOURCE ?= 3
2CFLAGS ?= -std=gnu99 3CFLAGS ?= -std=gnu99
3CFLAGS += -I../include/ -D_FORTIFY_SOURCE=3 -static -O2 -Wall -Wextra -Werror -Werror=pointer-arith 4CFLAGS += -I../include/ -D_FORTIFY_SOURCE=$(_FORTIFY_SOURCE) -static -O2 -Wall -Wextra -Werror -Werror=pointer-arith
4CFLAGS += -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)
5 7
6RUNTIME_TARGETS= \ 8RUNTIME_TARGETS= \
7 test_FD_CLR_SETSIZE \ 9 test_FD_CLR_SETSIZE \