summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-04-22 23:08:34 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-04-22 23:08:34 +0000
commit6010f97ee66fdc11f8f85b46c8e24f440ab8c72e (patch)
tree378ba6e886e2ccc497e370690d93c3079b2bcaa7 /lldb/source/API
parent4a46539c24736a60c9115fcc6d8f1c26ff8a4693 (diff)
downloadbcm5719-llvm-6010f97ee66fdc11f8f85b46c8e24f440ab8c72e.tar.gz
bcm5719-llvm-6010f97ee66fdc11f8f85b46c8e24f440ab8c72e.zip
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
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/SBTarget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp
index 6f01072a48a..2ef8bcdf39a 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;
OpenPOWER on IntegriCloud