From: Jim Meyering Date: Tue, 16 Sep 2014 18:15:25 +0000 (-0700) Subject: maint: don't trigger gcc-5's new -Wlogical-not-parentheses warning X-Git-Tag: v8.24~219 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5682a7e73dff2fa18d3f162f7f3409e0a132b51f;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/src/dircolors.c b/src/dircolors.c index a6487adad5..60960d4e26 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)