From 5682a7e73dff2fa18d3f162f7f3409e0a132b51f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 16 Sep 2014 11:15:25 -0700 Subject: 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. --- src/dircolors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dircolors.c') 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) -- cgit v1.2.3-54-g00ecf