Skip to content

Commit 0ee0857

Browse files
committed
[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 36cb29c.
1 parent c6d6186 commit 0ee0857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// This declaration works around a clang module build failure.
1414
// It should be deleted ASAP.
1515
#include "llvm/Support/Error.h"
16-
static llvm::Expected<bool> *g_fcxx_modules_workaround;
16+
static llvm::Expected<bool> *g_fcxx_modules_workaround [[maybe_unused]];
1717
// END
1818

1919
#include "lldb/Host/Config.h"

0 commit comments

Comments
 (0)