From 0ee0857363aadf9ce0f403e7e0da10f0a9d94887 Mon Sep 17 00:00:00 2001 From: David Spickett Date: Mon, 19 Aug 2024 17:02:36 +0100 Subject: [lldb][Python] Silence GCC warning for modules error workaround MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` lldb-python.h:16:30: warning: ‘g_fcxx_modules_workaround’ defined but not used [-Wunused-variable] 16 | static llvm::Expected *g_fcxx_modules_workaround; | ``` Workaround originally added in 36cb29cbbe1b22dcd298ad65e1fabe899b7d7249. --- lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h b/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h index c99372f..378b9fa 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 *g_fcxx_modules_workaround; +static llvm::Expected *g_fcxx_modules_workaround [[maybe_unused]]; // END #include "lldb/Host/Config.h" -- cgit v1.1