[Linux-ha-dev] cast lvalues is deprecated
l.g.e at web.de
Wed Jun 2 03:45:02 MDT 2004
/ 2004-06-02 17:28:40 +0800
\ Zhu, Yi:
> 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?
> char * a; /* a must be char * */
- (const char *)a = "something";
+ a = (char *) "something";
maybe that is more like what you mean...
More information about the Linux-HA-Dev