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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user