]> AND Public Git Repository - simgrid.git/blobdiff - src/bindings/java/JavaContext.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Avoid buffer overflow.
[simgrid.git] / src / bindings / java / JavaContext.cpp
index ff993551c4ebd22cb46c098e783edce1ec5b3b87..29cf71f81c0842d8fd75472bdc8ac32f5de1e72b 100644 (file)
@@ -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().