use of cast expressions as lvalues is deprecated

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

 



Hi,

I keep having this error when i upgraded my old gcc compiler.

in macro.h
#define FOR_EACH( p, p_list, action )                                       \
{                                                                           \
    PROTO_DATA  *p_next;                                                    \
    for ( p = (p_list); p; (PROTO_DATA *) p = p_next ) {                    \
        p_next = (PROTO_DATA *) p->next;                                    \
        LCHECK( p );                                                        \
        (action);                                                           \
    }                                                                       \
}

Is there anyway to work around this?
Thanks.
Lyndon
lyndon.oh@xxxxxxxxx

[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