Re: [PATCH] Fix Solaris Workshop Compiler issues
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 15, 2007, 00:46 UTC
- Message-ID
- <7vy7d08her.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <20071115004404.GB25021@atjola.homenet>
Björn Steinbrink <B.Steinbrink@gmx.de> writes:
Show 8 quoted lines
> On 2007.11.14 16:30:08 -0800, Junio C Hamano wrote: > >> Maybe your compiler needs -DFLEX_ARRAY=0 in CFLAGS? > > Actually, I just created a test-case remotely on a Solaris box in my > university (see below) and didn't compile the actual git code. With the > FAM, cc complains about a redeclared identifier, with a zero-sized > array, it complains that an array cannot be zero-sized...
I think you can pass -DFLEX_ARRAY=1 as a workaround. It would waste one array member in a flexible structure but that is better than compiler choking.