Commit 0a042504 authored by Mathieu Westphal's avatar Mathieu Westphal Committed by Kitware Robot
Browse files

Merge topic 'GilEnsureWarningFix'

8efe833a

 Initializing class members to avoid warnings
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: default avatarJoachim Pouderoux <joachim.pouderoux@kitware.com>
Merge-request: !946
parents 993a5ed3 8efe833a
......@@ -140,8 +140,10 @@ class vtkPythonScopeGilEnsurer
{
public:
vtkPythonScopeGilEnsurer(bool force = false)
: State(PyGILState_UNLOCKED)
{
#ifdef VTK_PYTHON_FULL_THREADSAFE
// Force is always true with FULL_THREADSAFE
force = true;
#endif
this->Force = force;
......@@ -161,6 +163,7 @@ public:
private:
PyGILState_STATE State;
bool Force;
vtkPythonScopeGilEnsurer(const vtkPythonScopeGilEnsurer&); // Not implemented.
void operator=(const vtkPythonScopeGilEnsurer&); // Not implemented.
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment