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" _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits