diff options
| author | Zachary Turner <zturner@google.com> | 2017-03-02 00:05:25 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2017-03-02 00:05:25 +0000 |
| commit | 3bc714b2094b9234de81cd79b89beb99b453ed3b (patch) | |
| tree | 5053dca61e01a695f4bb02db1c7b0c633160aa98 /lldb/source/Commands | |
| parent | 803a491a6453c08b355cc29568c4919b23def9ef (diff) | |
| download | bcm5719-llvm-3bc714b2094b9234de81cd79b89beb99b453ed3b.tar.gz bcm5719-llvm-3bc714b2094b9234de81cd79b89beb99b453ed3b.zip | |
Fix various warnings. NFC
llvm-svn: 296717
Diffstat (limited to 'lldb/source/Commands')
| -rw-r--r-- | lldb/source/Commands/CommandObjectFrame.cpp | 7 | ||||
| -rw-r--r-- | lldb/source/Commands/CommandObjectType.cpp | 3 |
2 files changed, 4 insertions, 6 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp index 1e96d81d689..701357f41ac 100644 --- a/lldb/source/Commands/CommandObjectFrame.cpp +++ b/lldb/source/Commands/CommandObjectFrame.cpp @@ -194,10 +194,9 @@ protected: const bool qualify_cxx_base_classes = false; - DumpValueObjectOptions::DeclPrintingHelper helper = - [&valobj_sp, qualify_cxx_base_classes]( - ConstString type, ConstString var, - const DumpValueObjectOptions &opts, Stream &stream) -> bool { + DumpValueObjectOptions::DeclPrintingHelper helper = [&valobj_sp]( + ConstString type, ConstString var, const DumpValueObjectOptions &opts, + Stream &stream) -> bool { const ValueObject::GetExpressionPathFormat format = ValueObject:: GetExpressionPathFormat::eGetExpressionPathFormatHonorPointers; valobj_sp->GetExpressionPath(stream, qualify_cxx_base_classes, format); diff --git a/lldb/source/Commands/CommandObjectType.cpp b/lldb/source/Commands/CommandObjectType.cpp index 7224a81fa12..93aca4570dd 100644 --- a/lldb/source/Commands/CommandObjectType.cpp +++ b/lldb/source/Commands/CommandObjectType.cpp @@ -1188,8 +1188,7 @@ protected: category_closure(category_sp); } else { DataVisualization::Categories::ForEach( - [this, &command, &result, &category_regex, &formatter_regex, - &category_closure]( + [&category_regex, &category_closure]( const lldb::TypeCategoryImplSP &category) -> bool { if (category_regex) { bool escape = true; |

