diff options
author | Pádraig Brady <P@draigBrady.com> | 2011-05-27 00:39:55 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2011-05-27 00:39:55 +0100 |
commit | 8a26bccb467a3b22e5d894234c4b4a5c337294d4 (patch) | |
tree | 762cc1e499c31fedbe2d06664b5d1ff8e812b3c7 /src | |
parent | ad756440fbf29fa35fd5c1c0893a3e96fe60aa54 (diff) | |
download | coreutils-8a26bccb467a3b22e5d894234c4b4a5c337294d4.tar.xz |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/ls.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |