Re: Latest GCC-3.3 is much quieter about sign/unsigned comparisons

Anders Karlsson (anders@trudheim.com)
05 May 2003 07:23:01 +0100


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-26601-1052115829-0001-2
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hello there, :-)

On Sun, 2003-05-04 at 22:22, Art Haas wrote:
> Hi.
>=20
> This change ...
>=20
> 2003-05-02 Zack Weinberg <zack@codesourcery.com>
>=20
> PR c/10604
> * c-opts.c (c_common_decode_option <OPT_Wall>): Set
> warn_sign_compare for C++ only.
> * doc/invoke.texi: Clarify documentation of -Wsign-compare.
>=20
> ... has eliminated all the warnings that GCC-3.3 by default printed
> with regards to signed/unsigned comparisons. A build of today's BK
> with this compiler is much quieter than those previously done
> with the 3.3 snapshots.

Yes, it means the warnings are not printed, it doesn't mean the problem
has gone away though.

I'd still like for someone to tell me if there is a specific reason to
use signed numbers in for example inode.c in one of the filesystems
(can't remember which one of the top of my head). I for one would get
rather surprised if some of my data started getting stored with negative
inodes...

Regards,

/Anders

--=_courier-26601-1052115829-0001-2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQA+tgNFLYywqksgYBoRAoBtAKDc/4MDoQGHP+hIuBNKwJ1P6hqn9gCfTvzi
ZFNcEWi3ztpKJMGGWozROlc=
=mCAt
-----END PGP SIGNATURE-----

--=_courier-26601-1052115829-0001-2--