warning: comparison with string literal results in unspecified behaviour
Jonathan Wakely
jwakely.gcc@gmail.com
Sat Jan 19 16:28:00 GMT 2008
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
More information about the Gcc
mailing list