This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gtk-peer compile fixes for gcc-2.95


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]