]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix warning in posix/bug-regex31.c.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 25 Nov 2014 21:40:51 +0000 (21:40 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 25 Nov 2014 21:40:51 +0000 (21:40 +0000)
This patch fixes a "set but not used" warning in posix/bug-regex31.c.
A variable res stored an indication of whether the test behaved as
expected, but was then ignored and the test returned 0 unconditionally
(as an mtrace test, the auxiliary test for leaks could still have
failed if that bug was present).  This patch makes the test return
res.

Tested for x86_64.

* posix/bug-regex31.c (main): Return RES not 0.

ChangeLog
posix/bug-regex31.c

index f827c3abf649fcac87d39da318a9c57378d2041f..8ee0650df73759756a90c819a977ef339bf48aa4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-11-25  Joseph Myers  <joseph@codesourcery.com>
+
+       * posix/bug-regex31.c (main): Return RES not 0.
+
 2014-11-25  Anton Blanchard <anton@samba.org>
 
        * sysdeps/powerpc/bits/atomic.h
index fc485815fcf67d82d87edced0ad614db49bde85d..fd7e0c57cab515be8379410243eed55b272c18d5 100644 (file)
@@ -33,5 +33,5 @@ main (void)
 
   free (buf);
 
-  return 0;
+  return res;
 }