This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: Fix parse error in flash.c
On Sun, 2003-10-12 at 05:43, Andrew Lunn wrote:
> On Wed, Oct 08, 2003 at 06:13:23PM +0200, Roland Ca?ebohm wrote:
> > Fix parse error when compiling packages/io/flash/current/src/flash.c
> > if CYGSEM_IO_FLASH_READ_INDIRECT is not defined.
>
> Hi Garry.
>
> You asked about what compiler Roland was using since yours did not
> pick up there "error". I think you are using gcc 3.3. That allows
> local variables to be declared anywhere in a function, where as older
> compilers only allow local variables to come after a {
>
Actually it was only 3.2.x (at the time), and he's using 2.95.3.
Note: I wasn't trying to put that variable in a non-standard place,
it just happened and the compiler didn't point it out to me :-(
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates