[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xstrtoimax compilation warning on Solaris 7
From: |
Eric Blake |
Subject: |
Re: xstrtoimax compilation warning on Solaris 7 |
Date: |
Tue, 08 Nov 2005 20:59:29 -0700 |
User-agent: |
Mozilla Thunderbird 1.0.2 (Windows/20050317) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Paul Eggert on 11/8/2005 2:18 PM:
>
>>This in turn looks to be a bug in Solaris' /usr/include/limits.h
>
> It's not really a bug, is it? The limits.h values have the correct
> types. It's merely an incompatibility between the Solaris 7 limits.h
> and GCC's warnings heuristic.
No, the values in Solaris 7 limits.h were of type int (they had no L or LL
suffix), but greater than 31 bits, so the warning is valid.
>
>>It looks like gcc still compiled everything correctly
>
>
> Yes, I would expect so.
>
> Let's not worry about it, then. The OS and compiler combination is
> pretty old, anyway, and the code is working.
Agreed. I can live with the warning, since gcc still did proper 64-bit
math with the full value of the literal in spite of the missing LL.
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDcXQh84KuGfSFAYARAikZAJ9RVHwYA9ylDpQNIG73nDaVVvT9/QCfUeKn
xJhbJ5r7ewiagt3rVbHHvoo=
=5vaW
-----END PGP SIGNATURE-----