Skip to content

Commit 713a629

Browse files
committed
[lldb] Fix misleading indentiation warning in ScriptInterpreterPython (NFC) (llvm#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 <[email protected]>
1 parent b1b5595 commit 713a629

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ struct InitializePythonRAII {
180180
// Python 3.13. It has been returning `true` always since Python 3.7.
181181
#if (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION < 9) || (PY_MAJOR_VERSION < 3)
182182
if (PyEval_ThreadsInitialized()) {
183+
#else
184+
if (true) {
183185
#endif
184186
Log *log = GetLog(LLDBLog::Script);
185187

@@ -196,6 +198,8 @@ struct InitializePythonRAII {
196198

197199
// InitThreads acquires the GIL if it hasn't been called before.
198200
PyEval_InitThreads();
201+
#else
202+
}
199203
#endif
200204
}
201205

0 commit comments

Comments
 (0)