[Linux-ha-dev] cast lvalues is deprecated
Zhu, Yi
yi.zhu at intel.com
Wed Jun 2 03:28:40 MDT 2004
Hi,
I know here is not comp.lang.c, but may I have a question?
I use gcc 3.3.3 within Fedora Core 2. I can't compile below
code without warning any more. Any chance to fix it without strcpy?
main()
{
char * a; /* a must be char * */
(const char *)a = "something";
}
$ gcc a.c -Wwrite-strings
a.c: In function `main':
a.c:4: warning: use of cast expressions as lvalues is deprecated
Thanks,
-yi
More information about the Linux-HA-Dev
mailing list