linux-mips
[Top] [All Lists]

Re: Compiler problems with zero-length array in the middle of a struct

To: Carsten Langgaard <carstenl@mips.com>
Subject: Re: Compiler problems with zero-length array in the middle of a struct
From: Ralf Baechle <ralf@linux-mips.org>
Date: Thu, 5 Dec 2002 14:10:18 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <3DEF2EBE.F273B44A@mips.com>; from carstenl@mips.com on Thu, Dec 05, 2002 at 11:47:26AM +0100
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <3DEF2EBE.F273B44A@mips.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.2.5.1i
On Thu, Dec 05, 2002 at 11:47:26AM +0100, Carsten Langgaard wrote:

> Some compiler reject a zero-length array in the middle of a structure,
> and report it as an error.
> So could we please redo the change, that has recently been done to
> include/linux/raid/md_p.h (see patch below).

Hmm...  What compiler version is that?  The gcc documentation explicitly
permits empty arrays.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>