aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2024-08-19 17:02:36 +0100
committerDavid Spickett <david.spickett@linaro.org>2024-08-19 17:03:58 +0100
commit0ee0857363aadf9ce0f403e7e0da10f0a9d94887 (patch)
tree1d380bd2df04e05014cca237ee52d6093d1c6d82 /lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
parentc6d6186b586f4249e393910b099815e616138cde (diff)
downloadllvm-0ee0857363aadf9ce0f403e7e0da10f0a9d94887.zip
llvm-0ee0857363aadf9ce0f403e7e0da10f0a9d94887.tar.gz
llvm-0ee0857363aadf9ce0f403e7e0da10f0a9d94887.tar.bz2
[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.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h2
1 files changed, 1 insertions, 1 deletions
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<bool> *g_fcxx_modules_workaround;
+static llvm::Expected<bool> *g_fcxx_modules_workaround [[maybe_unused]];
// END
#include "lldb/Host/Config.h"