forked from OSchip/llvm-project
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:
parent
25b75a2f7d
commit
358efd6557
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue