1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-14 11:21:58 +02:00

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.
This commit is contained in:
Jim Meyering
2014-09-16 11:15:25 -07:00
parent 756a928c8c
commit 5682a7e73d

View 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)