aboutsummaryrefslogtreecommitdiff
path: root/libjava/jni/gtk-peer/gthread-jni.c
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@redhat.com>2003-10-08 15:49:33 +0000
committerThomas Fitzsimmons <fitzsim@gcc.gnu.org>2003-10-08 15:49:33 +0000
commitce7a72c80da847d7e279369082063db2b06641a0 (patch)
tree2643da1632ea6b07e07e4f0f07c9e93b5e98bb31 /libjava/jni/gtk-peer/gthread-jni.c
parent51a398a00efc536cebe54c9c0009000c85bc02ac (diff)
downloadgcc-ce7a72c80da847d7e279369082063db2b06641a0.zip
gcc-ce7a72c80da847d7e279369082063db2b06641a0.tar.gz
gcc-ce7a72c80da847d7e279369082063db2b06641a0.tar.bz2
GtkMenuItemPeer.java (setEnabled): Stub out.
2003-10-08 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java (setEnabled): Stub out. * jni/classpath/jcl.c [!__GNUC__]: Elide __attribute__. (JCL_free): Attach "unused" attribute to env parameter. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c, jni/gtk-peer/gthread-jni.c: Attach "unused" attribute to unused parameters. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c: (initNativeState): Pass 0 as info argument to gtk_selection_add_target. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: (setVisible, gtkFixedNew, gtkFixedPut, gtkFixedMove): Remove unused method implementations. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (awt_event_handler): Add break statement after default label. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c (drawPixels): Remove unused variable i. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c (setEnabled): Remove method implementation. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c (accel_attach): Call _gtk_accel_group_attach with G_OBJECT argument. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (sr): Remove unused function. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c (menu_pos): Assign TRUE to push_in. (setupAccelGroup): Call _gtk_accel_group_attach with G_OBJECT argument. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c (create): Remove unused variable layout. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (create): Pass window_widget, rather than window, to gtk_widget_set_size_request. * jni/gtk-peer/gthread-jni.c (g_thread_jni_functions): Fill out structure initialization with NULL values. * jni/gtk-peer/gtkpeer.h [!__GNUC__]: Elide __attribute__. From-SVN: r72231
Diffstat (limited to 'libjava/jni/gtk-peer/gthread-jni.c')
-rw-r--r--libjava/jni/gtk-peer/gthread-jni.c28
1 files changed, 22 insertions, 6 deletions
diff --git a/libjava/jni/gtk-peer/gthread-jni.c b/libjava/jni/gtk-peer/gthread-jni.c
index b1077a7..a762b4e 100644
--- a/libjava/jni/gtk-peer/gthread-jni.c
+++ b/libjava/jni/gtk-peer/gthread-jni.c
@@ -189,7 +189,7 @@ static GMutex *g_mutex_new_jni_impl (void) {
}
/* Lock a mutex. */
-static void g_mutex_lock_jni_impl (GMutex *mutex) {
+static void g_mutex_lock_jni_impl (GMutex *mutex __attribute__((unused))) {
JNIEnv *gdk_env;
(*gdk_vm)->GetEnv(gdk_vm, (void **)&gdk_env, JNI_VERSION_1_1);
@@ -201,7 +201,9 @@ static void g_mutex_lock_jni_impl (GMutex *mutex) {
* do not provide such an interface. To be at least minimally correct,
* pretend we tried and failed.
*/
-static gboolean g_mutex_trylock_jni_impl (GMutex *mutex) {
+static gboolean g_mutex_trylock_jni_impl
+ (GMutex *mutex __attribute__((unused)))
+{
// Shall we implement this in a JikesRVM-specific way under a flag?
return FALSE;
}
@@ -285,7 +287,9 @@ static void g_cond_broadcast_jni_impl (GCond *cond) {
/* Wait on a condition variable. For us, this simply means call
* Object.wait.
*/
-static void g_cond_wait_jni_impl (GCond *cond, GMutex *mutex) {
+static void g_cond_wait_jni_impl
+ (GCond *cond, GMutex *mutex __attribute__((unused)))
+{
jclass lcl_class;
jmethodID wait_mth;
JNIEnv *gdk_env;
@@ -313,7 +317,10 @@ static void g_cond_wait_jni_impl (GCond *cond, GMutex *mutex) {
* so, that is Java-speak for wait timing out.
*/
static gboolean
-g_cond_timed_wait_jni_impl (GCond *cond, GMutex *mutex, GTimeVal *end_time) {
+g_cond_timed_wait_jni_impl
+ (GCond *cond, GMutex *mutex __attribute__((unused)),
+ GTimeVal *end_time)
+{
jclass lcl_class;
jmethodID wait_mth;
JNIEnv *gdk_env;
@@ -364,7 +371,9 @@ static void g_cond_free_jni_impl (GCond *cond) {
/* Create a new thread-local key. We use java.lang.ThreadLocal objects
* for this.
*/
-static GPrivate *g_private_new_jni_impl (GDestroyNotify notify) {
+static GPrivate *g_private_new_jni_impl
+ (GDestroyNotify notify __attribute__((unused)))
+{
jclass lcl_class;
jobject *local;
JNIEnv *gdk_env;
@@ -474,7 +483,14 @@ GThreadFunctions g_thread_jni_functions =
g_cond_free_jni_impl, /* cond_free */
g_private_new_jni_impl, /* private_new */
g_private_get_jni_impl, /* private_get */
- g_private_set_jni_impl /* private_set */
+ g_private_set_jni_impl, /* private_set */
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL
};
/* ??? */