diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2007-02-21 17:23:05 +0100 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-02-21 17:23:05 +0100 |
commit | cc388d140c15c5b524124d4f96539b80385e5e06 (patch) | |
tree | 664e6379046d94d69f21d6d013dd31c2c39f1622 /src | |
parent | c46549dc3847cf152b0660eca7dae34515b522c1 (diff) | |
download | coreutils-cc388d140c15c5b524124d4f96539b80385e5e06.tar.xz |
* src/copy.c (cached_umask): Cast -1 to mode_t to avoid a warning
about out-of-range initializer with Sun C 5.8.
Diffstat (limited to 'src')
-rw-r--r-- | src/copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/copy.c b/src/copy.c index 5ec5a921c..a3489c399 100644 --- a/src/copy.c +++ b/src/copy.c @@ -1980,7 +1980,7 @@ chown_failure_ok (struct cp_options const *x) extern mode_t cached_umask (void) { - static mode_t mask = -1; + static mode_t mask = (mode_t) -1; if (mask == (mode_t) -1) { mask = umask (0); |