This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Warning for different pointer signedness
- From: Paul Schlie <schlie at comcast dot net>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Mon, 20 Dec 2004 15:47:25 -0500
- Subject: Re: Warning for different pointer signedness
> From: Andrew Pinski <pinskia@physics.uc.edu>
> Wrong, wrong, wrong, the change only moved a warning from -pedantic
> to always on, in fact some compilers reject the code as it is invalid c.
>
> -- Pinski
Which seems odd given (signed xxx *) and (unsigned xxx *) will always be
guaranteed to be pointers to the exact same size and aligned storage units;
(therefore at best, seems like a mistake to consider them incompatible
objects for the purpose of comparison, as no possible ambiguity exists).