Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix warning in posix/bug-regex31.c.
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.
  • Loading branch information
Joseph Myers committed Nov 25, 2014
1 parent 5fbb569 commit bde2667
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions 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
Expand Down
2 changes: 1 addition & 1 deletion posix/bug-regex31.c
Expand Up @@ -33,5 +33,5 @@ main (void)

free (buf);

return 0;
return res;
}

0 comments on commit bde2667

Please sign in to comment.