From: Pádraig Brady Date: Thu, 26 May 2011 23:39:55 +0000 (+0100) Subject: maint: fix a -Wstrict-overflow build failure with gcc 4.5 X-Git-Tag: v8.13~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a26bccb467a3b22e5d894234c4b4a5c337294d4;p=thirdparty%2Fcoreutils.git maint: fix a -Wstrict-overflow build failure with gcc 4.5 * src/ls.c (print_color_indicator): Avoid the warning by not decrementing the integer. --- diff --git a/src/ls.c b/src/ls.c index 96a9c4c974..1c8d0d8e2f 100644 --- a/src/ls.c +++ b/src/ls.c @@ -4132,7 +4132,7 @@ print_color_indicator (const struct fileinfo *f, bool symlink_target) { name = f->linkname; mode = f->linkmode; - linkok = f->linkok - 1; + linkok = f->linkok ? 0 : -1; } else {