diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-04-22 23:08:34 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-04-22 23:08:34 +0000 |
commit | 6010f97ee66fdc11f8f85b46c8e24f440ab8c72e (patch) | |
tree | 378ba6e886e2ccc497e370690d93c3079b2bcaa7 /lldb/source/API/SBTarget.cpp | |
parent | 4a46539c24736a60c9115fcc6d8f1c26ff8a4693 (diff) | |
download | bcm5719-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/SBTarget.cpp')
-rw-r--r-- | lldb/source/API/SBTarget.cpp | 2 |
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; |