diff options
author | Jim Meyering <meyering@fb.com> | 2014-09-16 11:15:25 -0700 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2014-09-19 13:02:49 -0700 |
commit | 5682a7e73dff2fa18d3f162f7f3409e0a132b51f (patch) | |
tree | 0d09f4b90cfe113c40243515d124b74533488860 /src | |
parent | 756a928c8c4823bd0ed541ecbbc5b4ea7a2ccaa9 (diff) | |
download | coreutils-5682a7e73dff2fa18d3f162f7f3409e0a132b51f.tar.xz |
maint: don't trigger gcc-5's new -Wlogical-not-parentheses warning
* src/dircolors.c (main): Parenthesize !VAR as LHS to "<",
to avoid triggering gcc's new -Wlogical-not-parentheses warning.
Diffstat (limited to 'src')
-rw-r--r-- | src/dircolors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dircolors.c b/src/dircolors.c index a6487adad..60960d4e2 100644 --- a/src/dircolors.c +++ b/src/dircolors.c @@ -442,7 +442,7 @@ main (int argc, char **argv) usage (EXIT_FAILURE); } - if (!print_database < argc) + if ((!print_database) < argc) { error (0, 0, _("extra operand %s"), quote (argv[!print_database])); if (print_database) |