[Lldb-commits] [lldb] 0ee0857 - [lldb][Python] Silence GCC warning for modules error workaround
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 19 09:04:31 PDT 2024
Author: David Spickett
Date: 2024-08-19T17:03:58+01:00
New Revision: 0ee0857363aadf9ce0f403e7e0da10f0a9d94887
URL: https://github.com/llvm/llvm-project/commit/0ee0857363aadf9ce0f403e7e0da10f0a9d94887
DIFF: https://github.com/llvm/llvm-project/commit/0ee0857363aadf9ce0f403e7e0da10f0a9d94887.diff
LOG: [lldb][Python] Silence GCC warning for modules error workaround
```
lldb-python.h:16:30: warning: ‘g_fcxx_modules_workaround’ defined but not used [-Wunused-variable]
16 | static llvm::Expected<bool> *g_fcxx_modules_workaround;
|
```
Workaround originally added in 36cb29cbbe1b22dcd298ad65e1fabe899b7d7249.
Added:
Modified:
lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
Removed:
################################################################################
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h b/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
index c99372fa110cd2..378b9fa2a59865 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
@@ -13,7 +13,7 @@
// This declaration works around a clang module build failure.
// It should be deleted ASAP.
#include "llvm/Support/Error.h"
-static llvm::Expected<bool> *g_fcxx_modules_workaround;
+static llvm::Expected<bool> *g_fcxx_modules_workaround [[maybe_unused]];
// END
#include "lldb/Host/Config.h"
More information about the lldb-commits
mailing list