diff options
author | rillig <rillig@pkgsrc.org> | 2007-11-30 20:30:22 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-11-30 20:30:22 +0000 |
commit | 2331820bc4f71d0b73d5c570ad66da3e77ce9e0d (patch) | |
tree | 44bad4c27e8f2d929d64a12fda50f285785e391b /lang/cim/patches | |
parent | bdb25a60d919ffa81e72321fb48ff3c47b48d575 (diff) | |
download | pkgsrc-2331820bc4f71d0b73d5c570ad66da3e77ce9e0d.tar.gz |
Fixed invalid lvalue.
Diffstat (limited to 'lang/cim/patches')
-rw-r--r-- | lang/cim/patches/patch-ac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/cim/patches/patch-ac b/lang/cim/patches/patch-ac new file mode 100644 index 00000000000..0f97f567069 --- /dev/null +++ b/lang/cim/patches/patch-ac @@ -0,0 +1,15 @@ +$NetBSD: patch-ac,v 1.1 2007/11/30 20:30:22 rillig Exp $ + +gcc4 complains about an invalid lvalue. + +--- src/obstack.h.orig 1998-09-12 16:59:34.000000000 +0200 ++++ src/obstack.h 2007-11-30 21:27:21.000000000 +0100 +@@ -417,7 +417,7 @@ __extension__ \ + ({ 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); \ + (void) 0; }) + + #define obstack_int_grow(OBSTACK,datum) \ |