Salome HOME
#18963 Minimize compiler warnings
[modules/med.git] / src / MEDCalc / cmp / MEDPyLockWrapper.hxx
index fdcad57cfa10d8f808d65ee462f83fdd9e3ddeed..06e7621b6dc852e38f0ac815ea6a7b95d4706bb5 100644 (file)
@@ -54,9 +54,8 @@ public:
    */
   ~MEDPyLockWrapper()
   {
-    PyThreadState* _currState = PyGILState_GetThisThreadState();
 #ifdef _DEBUG_
-    if (_currState != _state)
+    if (PyGILState_GetThisThreadState() != _state)
     {
       std::cout << "!!!!!!!!! MEDPyLockWrapper inconsistency - now entering infinite loop for debugging\n";
       while(1);