From c4d7bd3907c64ce6ab670cfe97557881b6da2d32 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 3 Nov 2004 20:31:21 +0000 Subject: * debug/tst-chk1.c (ret): New volatile variable. (CHK_FAIL_END): Remove redundant ret setting. (do_test): Remote ret variable. --- debug/tst-chk1.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'debug') diff --git a/debug/tst-chk1.c b/debug/tst-chk1.c index 639da3847c..ef7f278a8c 100644 --- a/debug/tst-chk1.c +++ b/debug/tst-chk1.c @@ -50,7 +50,7 @@ do_prepare (void) } } -volatile int chk_fail_ok; +volatile int chk_fail_ok, ret; jmp_buf chk_fail_buf; static void @@ -86,7 +86,6 @@ int num2 = 987654; #define CHK_FAIL_END \ chk_fail_ok = 0; \ FAIL (); \ - ret = 1; \ } #if __USE_FORTIFY_LEVEL >= 2 #define CHK_FAIL2_START CHK_FAIL_START @@ -99,7 +98,6 @@ int num2 = 987654; static int do_test (void) { - int ret = 0; struct sigaction sa; sa.sa_handler = handler; sa.sa_flags = 0; -- cgit v1.2.3