This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: pointer <-> integer conversion warnings (bogus -Wall warnings )
- From: dewar at gnat dot com (Robert Dewar)
- To: aoliva at redhat dot com, lord at emf dot net
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 15 Mar 2002 07:13:13 -0500 (EST)
- Subject: Re: pointer <-> integer conversion warnings (bogus -Wall warnings )
I must say this thread is quite interesting, we come off a discussion where
some people argue that %y should always give a warning, despite the fact that
the effect of %y is well defined, free of semantic problems, and entirely
implementation independent, and then plunge into a thread where people argue
that conversion of pointers to ints - a notorious case of an operation which
is ill defined, full of semantic problems, and highly implementation dependent,
and argue that it should NOT give a warning.
Just goes to show that warnings are a difficult area of discussion :-)