From: Saleem Abdulrasool Date: Fri, 22 Apr 2016 23:08:34 +0000 (+0000) Subject: Source: fix another -Wunused-variable warning X-Git-Tag: llvmorg-3.9.0-rc1~8220 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6010f97ee66fdc11f8f85b46c8e24f440ab8c72e;p=platform%2Fupstream%2Fllvm.git 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 --- 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;