This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Fix warning in misc/tst-mntent2.c.
- From: Torvald Riegel <triegel at redhat dot com>
- To: GLIBC Devel <libc-alpha at sourceware dot org>
- Date: Mon, 15 Dec 2014 22:27:24 +0100
- Subject: [PATCH] Fix warning in misc/tst-mntent2.c.
- Authentication-results: sourceware.org; auth=none
This fixes a -Werror failure with a recent GCC build by adding
parentheses. OK?
2014-12-15 Torvald Riegel <triegel@redhat.com>
* misc/tst-mntent2.c (do_test): Fix warning.
commit 8df1db0d06065f114b15345430c2bb8c90c01bf7
Author: Torvald Riegel <triegel@redhat.com>
Date: Mon Dec 15 22:11:56 2014 +0100
Fix warning in misc/tst-mntent2.c.
diff --git a/misc/tst-mntent2.c b/misc/tst-mntent2.c
index e61d506..ba1ee0a 100644
--- a/misc/tst-mntent2.c
+++ b/misc/tst-mntent2.c
@@ -17,7 +17,7 @@ do_test (void)
mef.mnt_passno = 2;
#define TEST(opt, found) \
- if (!!hasmntopt (&mef, (opt)) != (found)) \
+ if ((!!hasmntopt (&mef, (opt))) != (found)) \
{ \
printf ("Option %s was %sfound\n", (opt), (found) ? "not " : ""); \
result = 1; \