[LTP] [PATCH 2/2] stack_clash: Compile with -Wno-infinite-recursion
Petr Vorel
pvorel@suse.cz
Tue Oct 24 10:49:23 CEST 2023
The algorithm is based on recursive calling of exhaust_stack_into_sigsegv(),
remove the warning.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
testcases/cve/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/cve/Makefile b/testcases/cve/Makefile
index c5308794d..01b9b9ccb 100644
--- a/testcases/cve/Makefile
+++ b/testcases/cve/Makefile
@@ -7,7 +7,7 @@ include $(top_srcdir)/include/mk/testcases.mk
CFLAGS += -D_GNU_SOURCE
-stack_clash: CFLAGS += -fno-optimize-sibling-calls
+stack_clash: CFLAGS += -fno-optimize-sibling-calls -Wno-infinite-recursion
cve-2016-7042: LDLIBS += $(KEYUTILS_LIBS)
--
2.42.0
More information about the ltp
mailing list