summary refs log tree commit diff
path: root/debug
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-11-03 20:31:21 +0000
committerRoland McGrath <roland@gnu.org>2004-11-03 20:31:21 +0000
commitc4d7bd3907c64ce6ab670cfe97557881b6da2d32 (patch)
tree9666b5610ae0af2bd9cac86ac0e8d9b7895a7a7e /debug
parent27bbfab0b7e474d34330679284e81c0b1e3a20e0 (diff)
downloadglibc-c4d7bd3907c64ce6ab670cfe97557881b6da2d32.tar.gz
glibc-c4d7bd3907c64ce6ab670cfe97557881b6da2d32.tar.xz
glibc-c4d7bd3907c64ce6ab670cfe97557881b6da2d32.zip
* debug/tst-chk1.c (ret): New volatile variable.
	(CHK_FAIL_END): Remove redundant ret setting.
	(do_test): Remote ret variable.
Diffstat (limited to 'debug')
-rw-r--r--debug/tst-chk1.c4
1 files changed, 1 insertions, 3 deletions
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;