From 8a786be384fb1279413bd123ce2dfeee9c008bc4 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Mon, 30 Oct 2023 16:29:46 -0700 Subject: [lldb] Fix misleading indentiation warning in ScriptInterpreterPython (NFC) (#70732) This should silence the "misleading indentiation" warnings introduced by b2929be, by adding an no-op if-statement, if the surrounding if-statement have been compiled out. Signed-off-by: Med Ismail Bennani --- .../Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index 968cc8ca..953f8b3 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -183,6 +183,8 @@ private: // Python 3.13. It has been returning `true` always since Python 3.7. #if (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION < 9) || (PY_MAJOR_VERSION < 3) if (PyEval_ThreadsInitialized()) { +#else + if (true) { #endif Log *log = GetLog(LLDBLog::Script); @@ -199,6 +201,8 @@ private: // InitThreads acquires the GIL if it hasn't been called before. PyEval_InitThreads(); +#else + } #endif } -- cgit v1.1