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

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