summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-04-21 16:56:02 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-04-21 16:56:02 +0000
commit358efd65575a142b059da2bee617986ac18d9ec6 (patch)
tree7c7ee1e591311ccb36b98984d21bf32165d76d84 /lldb/source/API
parent25b75a2f7dd317db23cefec9a5b29018d473a54d (diff)
downloadbcm5719-llvm-358efd65575a142b059da2bee617986ac18d9ec6.tar.gz
bcm5719-llvm-358efd65575a142b059da2bee617986ac18d9ec6.zip
API: fix a -Wunused-variable warning
expr_log is only conditionally used via preprocessing. Ensure that we guard the definition accordingly. NFC. llvm-svn: 267001
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/SBFrame.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/API/SBFrame.cpp b/lldb/source/API/SBFrame.cpp
index d53eb27344b..cdf5a5a2a76 100644
--- a/lldb/source/API/SBFrame.cpp
+++ b/lldb/source/API/SBFrame.cpp
@@ -1440,7 +1440,9 @@ SBFrame::EvaluateExpression (const char *expr, const SBExpressionOptions &option
{
Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
+#ifndef LLDB_DISABLE_PYTHON
Log *expr_log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS));
+#endif
ExpressionResults exe_results = eExpressionSetupError;
SBValue expr_result;
OpenPOWER on IntegriCloud