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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux