Re: bsdtar breakage ?

From: Tim Kientzle <kientzle_at_freebsd.org>
Date: Sun, 07 Nov 2004 10:15:38 -0800
Poul-Henning Kamp wrote:
> i386 -current buildworld:
> 
> ===> gnu/usr.bin/tar (all)
> /bang/src1/src/gnu/usr.bin/tar/../../../contrib/tar/src/create.c: In function `mode_to_chars':
> /bang/src1/src/gnu/usr.bin/tar/../../../contrib/tar/src/create.c:264: warning: comparison is always false due to limited range of data type
> ===> gnu/usr.bin/tar/doc (all)
> ===> gnu/usr.bin/texinfo (all)

This is gtar.

The relevant code here is:
     mode_t v;
     int negative;
     negative = v < 0;

Since mode_t is unsigned, the comparison
"v < 0" is always false, hence the warning.

This file hasn't been touched in over two years.
mode_t has been unsigned for at least that long.

I smell a compiler upgrade.  ;-)

Tim
Received on Sun Nov 07 2004 - 17:15:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:21 UTC