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

25845f
commit bde2667a22c355467a4f07246c6d07a9dcc89366
25845f
Author: Joseph Myers <joseph@codesourcery.com>
25845f
Date:   Tue Nov 25 21:40:51 2014 +0000
25845f
25845f
    Fix warning in posix/bug-regex31.c.
25845f
    
25845f
    This patch fixes a "set but not used" warning in posix/bug-regex31.c.
25845f
    A variable res stored an indication of whether the test behaved as
25845f
    expected, but was then ignored and the test returned 0 unconditionally
25845f
    (as an mtrace test, the auxiliary test for leaks could still have
25845f
    failed if that bug was present).  This patch makes the test return
25845f
    res.
25845f
    
25845f
    Tested for x86_64.
25845f
    
25845f
            * posix/bug-regex31.c (main): Return RES not 0.
25845f
25845f
diff --git a/posix/bug-regex31.c b/posix/bug-regex31.c
25845f
index fc485815fcf67d82..fd7e0c57cab515be 100644
25845f
--- a/posix/bug-regex31.c
25845f
+++ b/posix/bug-regex31.c
25845f
@@ -33,5 +33,5 @@ main (void)
25845f
 
25845f
   free (buf);
25845f
 
25845f
-  return 0;
25845f
+  return res;
25845f
 }