This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: warning: comparison with string literal results in unspecified behaviour
- From: "Jonathan Wakely" <jwakely dot gcc at gmail dot com>
- To: "Russell Shaw" <rjshaw at netspace dot net dot au>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 19 Jan 2008 14:03:05 +0000
- Subject: Re: warning: comparison with string literal results in unspecified behaviour
- References: <4791B2FD.7080908@netspace.net.au>
On 19/01/2008, Russell Shaw wrote:
> How do i disable that? My code explicitly compares string pointers.
Your question is off-topic on this list, which is for development of
GCC, please use the gcc-help list for help using the compiler:
http://gcc.gnu.org/lists.html
-Wno-address will suppress the warning, but the code still relies on
unspecified behaviour.
Jon