Author: compnerd Date: Thu Apr 21 11:56:02 2016 New Revision: 267001 URL: http://llvm.org/viewvc/llvm-project?rev=267001&view=rev Log: API: fix a -Wunused-variable warning
expr_log is only conditionally used via preprocessing. Ensure that we guard the definition accordingly. NFC. Modified: lldb/trunk/source/API/SBFrame.cpp Modified: lldb/trunk/source/API/SBFrame.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBFrame.cpp?rev=267001&r1=267000&r2=267001&view=diff ============================================================================== --- lldb/trunk/source/API/SBFrame.cpp (original) +++ lldb/trunk/source/API/SBFrame.cpp Thu Apr 21 11:56:02 2016 @@ -1440,7 +1440,9 @@ SBFrame::EvaluateExpression (const char { 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; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits