Blame SOURCES/glibc-rh1505492-unused-8.patch

00db10
commit c82f5c0ce5c1c0180fca311ceb29fd2d59da7441
00db10
Author: Joseph Myers <joseph@codesourcery.com>
00db10
Date:   Wed Nov 26 00:45:19 2014 +0000
00db10
00db10
    Fix warning in setjmp/jmpbug.c.
00db10
    
00db10
    This patch fixes a "set but not used" warning in setjmp/jmpbug.c.  A
00db10
    variable is used only to store the result of alloca.  A cast to void
00db10
    is added to avoid the warning, and the variable is made volatile to
00db10
    ensure the call to alloca isn't optimized away for being unused.
00db10
    
00db10
    Tested for x86_64.
00db10
    
00db10
            * setjmp/jmpbug.c (test): Make foo volatile and cast it to
00db10
            void.
00db10
00db10
diff --git a/setjmp/jmpbug.c b/setjmp/jmpbug.c
00db10
index 125977b2f719dbeb..8594c5a8a782b218 100644
00db10
--- a/setjmp/jmpbug.c
00db10
+++ b/setjmp/jmpbug.c
00db10
@@ -14,7 +14,7 @@ static void
00db10
 test (int x)
00db10
 {
00db10
   jmp_buf buf;
00db10
-  char *foo;
00db10
+  char *volatile foo;
00db10
   int arr[100];
00db10
 
00db10
   arr[77] = x;
00db10
@@ -25,6 +25,7 @@ test (int x)
00db10
     }
00db10
 
00db10
   foo = (char *) alloca (128);
00db10
+  (void) foo;
00db10
   sub5 (buf);
00db10
 }
00db10