[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
cvsup gcc4 patch
- From: Adrian Reber <adrian lisas de>
- To: fedora-extras-list redhat com
- Subject: cvsup gcc4 patch
- Date: Sun, 27 Mar 2005 23:44:16 +0200
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]