[PATCH] debug: Suppress FAIL macro redefinition warning in tst-fortify

Florian Weimer fweimer@redhat.com
Wed Sep 11 07:43:03 GMT 2024


Fixes commit 1b97a9f23bf605ca608162089c94187573fb2a9e
("support: Add FAIL test failure helper").

---
 debug/tst-fortify.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debug/tst-fortify.c b/debug/tst-fortify.c
index ae738ff10a..54d67111fa 100644
--- a/debug/tst-fortify.c
+++ b/debug/tst-fortify.c
@@ -129,6 +129,7 @@ static char buf2[10] = "%s";
 static int num1 = 67;
 static int num2 = 987654;
 
+#undef FAIL
 #define FAIL() \
   do { printf ("Failure on line %d\n", __LINE__); ret = 1; } while (0)
 #define CHK_FAIL_START \

base-commit: 8ecb477ea16a387a44ace5bf59d39a7e270b238b



More information about the Libc-alpha mailing list