[Lldb-commits] [lldb] r250322 - Avoid a -Wreorder warning in ScriptInterpreterPython.cpp.

Stephane Sezer via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 14 13:39:42 PDT 2015


Author: sas
Date: Wed Oct 14 15:39:41 2015
New Revision: 250322

URL: http://llvm.org/viewvc/llvm-project?rev=250322&view=rev
Log:
Avoid a -Wreorder warning in ScriptInterpreterPython.cpp.

Modified:
    lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp

Modified: lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp?rev=250322&r1=250321&r2=250322&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp (original)
+++ lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp Wed Oct 14 15:39:41 2015
@@ -93,8 +93,8 @@ struct InitializePythonRAII
 {
 public:
     InitializePythonRAII() :
-        m_was_already_initialized(false),
-        m_gil_state(PyGILState_UNLOCKED)
+        m_gil_state(PyGILState_UNLOCKED),
+        m_was_already_initialized(false)
     {
         // Python will muck with STDIN terminal state, so save off any current TTY
         // settings so we can restore them.




More information about the lldb-commits mailing list