This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Problem compiling bin/kawapath.c
- From: Per Bothner <per at bothner dot com>
- To: Dean Ferreyra <dferreyra at igc dot org>
- Cc: "'Kawa List'" <kawa at sources dot redhat dot com>
- Date: Mon, 14 Nov 2005 15:52:35 -0800
- Subject: Re: Problem compiling bin/kawapath.c
- References: <4379206D.7070000@igc.org>
Dean Ferreyra wrote:
I got an error compiling bin/kawapath.c from CVS (see error below).
Maybe I've conifgured something wrong? In any case, I just swapped
two lines to get it to compile (attached diff).
It's an issue of different gcc versions reflecting
different C standards.
Traditional C requires declarations to come before statements,
but C99 follows C++ in allowing them to be intermixed.
For portability, I'm applying your patch.
--
--Per Bothner
per@bothner.com http://per.bothner.com/