Source: fix another -Wunused-variable warning
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 22 Apr 2016 23:08:34 +0000 (23:08 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 22 Apr 2016 23:08:34 +0000 (23:08 +0000)
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

index 6f01072..2ef8bcd 100644 (file)
@@ -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;