[Lldb-commits] [lldb] r267001 - API: fix a -Wunused-variable warning

Saleem Abdulrasool via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 21 09:56:02 PDT 2016


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;




More information about the lldb-commits mailing list