X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1ac51a57cbc9eeda2ae7100d7366d0788db83029..b9625f82f86db0674e911887addce45dca31b57f:/src/bindings/java/JavaContext.cpp diff --git a/src/bindings/java/JavaContext.cpp b/src/bindings/java/JavaContext.cpp index 1622e85672..29cf71f81c 100644 --- a/src/bindings/java/JavaContext.cpp +++ b/src/bindings/java/JavaContext.cpp @@ -1,6 +1,6 @@ /* Context switching within the JVM. */ -/* Copyright (c) 2009-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2009-2020. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -65,7 +65,7 @@ void JavaContext::stop_hook() { JNIEnv* env = this->jenv_; env->DeleteGlobalRef(this->jprocess_); - XBT_ATTRIB_UNUSED jint error = __java_vm->DetachCurrentThread(); + jint error = __java_vm->DetachCurrentThread(); if (error != JNI_OK) { /* This is probably a Java thread, ie an actor not created from the XML (and thus from the C++), * but from Java with something like new Process().start().