cvsup gcc4 patch
Adrian Reber
adrian at lisas.de
Sun Mar 27 21:44:16 UTC 2005
I tried ti build cvsup and it fails with following error:
read-rtl.c:662: error: invalid lvalue in increment
I have following patch to fix it and before releasing it I would be
thankful to get some comments on this patch:
@@ -423,7 +423,8 @@
({ struct obstack *__o = (OBSTACK); \
if (__o->next_free + sizeof (void *) > __o->chunk_limit) \
_obstack_newchunk (__o, sizeof (void *)); \
- *((void **)__o->next_free)++ = ((void *)datum); \
+ *((void **)__o->next_free) = ((void *)datum); \
+ __o->next_free += sizeof(void *); \
(void) 0; })
This shuts up the compiler and builds the package successful.
Adrian
More information about the fedora-extras-list
mailing list