From 6010f97ee66fdc11f8f85b46c8e24f440ab8c72e Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Fri, 22 Apr 2016 23:08:34 +0000 Subject: [PATCH] Source: fix another -Wunused-variable warning Conditionalise a variable definition which may be unused in certain compilations due to the preprocessor. Protect the variable accordingly. NFC. llvm-svn: 267247 --- lldb/source/API/SBTarget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp index 6f01072..2ef8bcd 100644 --- a/lldb/source/API/SBTarget.cpp +++ b/lldb/source/API/SBTarget.cpp @@ -2388,7 +2388,9 @@ lldb::SBValue SBTarget::EvaluateExpression (const char *expr, const SBExpressionOptions &options) { Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API)); +#if !defined(LLDB_DISABLE_PYTHON) Log * expr_log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS)); +#endif SBValue expr_result; ExpressionResults exe_results = eExpressionSetupError; ValueObjectSP expr_value_sp; -- 2.7.4