]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: don't trigger gcc-5's new -Wlogical-not-parentheses warning
authorJim Meyering <meyering@fb.com>
Tue, 16 Sep 2014 18:15:25 +0000 (11:15 -0700)
committerJim Meyering <meyering@fb.com>
Fri, 19 Sep 2014 20:02:49 +0000 (13:02 -0700)
* src/dircolors.c (main): Parenthesize !VAR as LHS to "<",
to avoid triggering gcc's new -Wlogical-not-parentheses warning.

src/dircolors.c

index a6487adad5a4b2d818a2fc799402d224b9344b6e..60960d4e26c36915d8decb86c11cb78e197df351 100644 (file)
@@ -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)