[Lldb-commits] [lldb] r267247 - Source: fix another -Wunused-variable warning
Saleem Abdulrasool via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 22 16:08:34 PDT 2016
Author: compnerd
Date: Fri Apr 22 18:08:34 2016
New Revision: 267247
URL: http://llvm.org/viewvc/llvm-project?rev=267247&view=rev
Log:
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.
Modified:
lldb/trunk/source/API/SBTarget.cpp
Modified: lldb/trunk/source/API/SBTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBTarget.cpp?rev=267247&r1=267246&r2=267247&view=diff
==============================================================================
--- lldb/trunk/source/API/SBTarget.cpp (original)
+++ lldb/trunk/source/API/SBTarget.cpp Fri Apr 22 18:08:34 2016
@@ -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;
More information about the lldb-commits
mailing list