FYI [gui] filenameFilterCallback should be static

Mark Wielaard mark@klomp.org
Sun Nov 7 15:00:00 GMT 2004


Hi,

When turning on -Werror in GNU Classpath the following popped up:

2004-11-07  Mark Wielaard  <mark@klomp.org>

        * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
        (filenameFilterCallback): Made static.

Committed to the gui branch.

Mark

--- /home/mjw/src/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c	Wed Oct 27 15:54:31 2004
+++ jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c	Tue Oct 26 05:34:59 2004
@@ -127,8 +127,8 @@
    This function extracts the filename from the GtkFileFilterInfo object,
    and passes it to the Java method.  The Java method will call the filter's
    accept() method and will give back the return value. */
-gboolean filenameFilterCallback (const GtkFileFilterInfo *filter_info,
-				  gpointer obj)
+static gboolean filenameFilterCallback (const GtkFileFilterInfo *filter_info,
+                                 	 gpointer obj)
 {
   jclass cx;
   jmethodID id;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20041107/32f9cb3a/attachment.sig>


More information about the Java-patches mailing list