Re: Problem with "warning: deprecated conversion from string constant to ‘char*’"

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

 



Jens Rehsack wrote:
Correct. And if the strings are not modifiable? (I thought I provided an
example which shows, that they neither are assumed being modifiable
nor being modified).

no warning:
const char *x = "abc";

warning:
char *x = "abc";

maybe that's what you're after?
You can use const in your structs as well.

HTH
Cedric.


[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