summary refs log tree commit diff
path: root/setjmp/jmpbug.c
diff options
context:
space:
mode:
Diffstat (limited to 'setjmp/jmpbug.c')
-rw-r--r--setjmp/jmpbug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/setjmp/jmpbug.c b/setjmp/jmpbug.c
index 125977b2f7..8594c5a8a7 100644
--- a/setjmp/jmpbug.c
+++ b/setjmp/jmpbug.c
@@ -14,7 +14,7 @@ static void
 test (int x)
 {
   jmp_buf buf;
-  char *foo;
+  char *volatile foo;
   int arr[100];
 
   arr[77] = x;
@@ -25,6 +25,7 @@ test (int x)
     }
 
   foo = (char *) alloca (128);
+  (void) foo;
   sub5 (buf);
 }