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
This commit is contained in:
Saleem Abdulrasool 2016-04-21 16:56:02 +00:00
parent 25b75a2f7d
commit 358efd6557
1 changed files with 2 additions and 0 deletions

View File

@ -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;