This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: gtk-peer compile fixes for gcc-2.95
- From: Michael Koch <konqueror at gmx dot de>
- To: Mark Wielaard <mark at klomp dot org>
- Cc: java-patches at gcc dot gnu dot org
- Date: Thu, 25 Mar 2004 18:46:27 +0100
- Subject: Re: gtk-peer compile fixes for gcc-2.95
- References: <1080236148.18716.161.camel@elsschot.wildebeest.org>
Am Donnerstag, 25. März 2004 18:35 schrieb Mark Wielaard:
> Hi,
>
> The following fixes make the gtk-peers compile again with gcc-2.95 in
> Classpath.
>
> 2004-03-25 Mark Wielaard <mark@klomp.org>
>
> * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
> (item_activate): Declare label before use.
> *
> native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
> (gtkSetFont): Removed unused variable label.
> (addExposeFilter): Declare variables before use.
> (removeExposeFilter): Likewise.
> *
> native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
> (ok_clicked): Declare str_fileName before use.
>
> Also OK for libgcj main?
We had this discussion on irc lately because I got a report about this
from a user. Tromey said the best solution would be to pass -std=c99
(or similar) to gcc instead of changing the source code. Its a
discussion C89 vs. C99.
Michael