This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: warning: comparison with string literal results in unspecified behaviour


Russell Shaw wrote:
How do i disable that? My code explicitly compares string pointers.

The best way is to intern all your strings. String interning is a fairly common efficient technique and you can look it up in Google.

Andrew.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]