summaryrefslogtreecommitdiff
path: root/libjava/jni.cc
diff options
context:
space:
mode:
authorgreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-26 21:12:54 +0000
committergreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-26 21:12:54 +0000
commit98089046971408cada3f74eb4c5310788538f688 (patch)
tree9fe78cae5f76c6dd6ff0b305f3340300023071b2 /libjava/jni.cc
parenta139c1c8f9ae2004e74d9ad4c84cbb63a43b386d (diff)
downloadgcc-98089046971408cada3f74eb4c5310788538f688.tar.gz
Minor clean up and bug fix.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32196 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/jni.cc')
-rw-r--r--libjava/jni.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/libjava/jni.cc b/libjava/jni.cc
index 92dbf3fb26e..3eca405757e 100644
--- a/libjava/jni.cc
+++ b/libjava/jni.cc
@@ -1545,8 +1545,7 @@ _Jv_JNI_AttachCurrentThread (JavaVM *, jstring name, void **penv, void *args)
// have been called simply to set the new JNIEnv.
if (_Jv_ThreadCurrent () == NULL)
{
- java::lang::Thread *t = new gnu::gcj::jni::NativeThread (group, name);
- t = t; // Avoid compiler warning. Eww.
+ (void) new gnu::gcj::jni::NativeThread (group, name);
}
_Jv_SetCurrentJNIEnv (env);
@@ -1707,7 +1706,7 @@ JNI_CreateJavaVM (JavaVM **vm, void **penv, void *args)
}
jint
-JNI_GetCreatedJavaVMs (JavaVM **vm_buffer, jsize buf_len, jsize *n_vms)
+JNI_GetCreatedJavaVMs (JavaVM **vm_buffer, jsize /* buf_len */, jsize *n_vms)
{
JvAssert (buf_len > 0);
// We only support a single VM.