Salome HOME
#18963 Minimize compiler warnings
[modules/paravis.git] / test / standalone / simple / PyInterp_Utils.h
index e5a417093048f8faee125288f402996cbfc8cc26..2075e681d3efadf42450b4a89a31c374a30fe7ad 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2019  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2020  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -60,9 +60,8 @@ public:
    */
   ~PyLockWrapper()
   {
-    PyThreadState* _currState = PyGILState_GetThisThreadState();
 #ifdef _DEBUG_
-    if (_currState != _state)
+    if (PyGILState_GetThisThreadState() != _state)
     {
       std::cout << "!!!!!!!!! PyLockWrapper inconsistency - now entering infinite loop for debugging\n";
       while(1);