From: Augustin Degomme Date: Tue, 23 Sep 2014 12:33:22 +0000 (+0200) Subject: same issue with java bindings without NDEBUG X-Git-Tag: v3_12~801 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/60786eda45cc39af55978c7eb30e2643d920aea5 same issue with java bindings without NDEBUG --- diff --git a/src/bindings/java/smx_context_java.c b/src/bindings/java/smx_context_java.c index 9b74b89532..b8dbfbb91a 100644 --- a/src/bindings/java/smx_context_java.c +++ b/src/bindings/java/smx_context_java.c @@ -96,7 +96,7 @@ static void* smx_ctx_java_thread_run(void *data) { xbt_os_thread_set_extra_data(context); //Attach the thread to the JVM JNIEnv *env; - jint error = (*__java_vm)->AttachCurrentThread(__java_vm, (void **) &env, NULL); + _XBT_GNUC_UNUSED jint error = (*__java_vm)->AttachCurrentThread(__java_vm, (void **) &env, NULL); xbt_assert((error == JNI_OK), "The thread could not be attached to the JVM"); context->jenv = get_current_thread_env(); //Wait for the first scheduling round to happen. @@ -162,7 +162,7 @@ void smx_ctx_java_stop(smx_context_t context) /* detach the thread and kills it */ JNIEnv *env = ctx_java->jenv; (*env)->DeleteGlobalRef(env,ctx_java->jprocess); - jint error = (*__java_vm)->DetachCurrentThread(__java_vm); + _XBT_GNUC_UNUSED jint error = (*__java_vm)->DetachCurrentThread(__java_vm); xbt_assert((error == JNI_OK), "The thread couldn't be detached."); xbt_os_sem_release(((smx_ctx_java_t)context)->end); xbt_os_thread_exit(NULL);