[Lldb-commits] [lldb] r350089 - Fix "default argument for lambda parameter" (-Wpedantic) warning

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 27 01:44:32 PST 2018


Author: labath
Date: Thu Dec 27 01:44:32 2018
New Revision: 350089

URL: http://llvm.org/viewvc/llvm-project?rev=350089&view=rev
Log:
Fix "default argument for lambda parameter" (-Wpedantic) warning

Modified:
    lldb/trunk/source/Plugins/Process/minidump/ProcessMinidump.cpp

Modified: lldb/trunk/source/Plugins/Process/minidump/ProcessMinidump.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/minidump/ProcessMinidump.cpp?rev=350089&r1=350088&r2=350089&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/minidump/ProcessMinidump.cpp (original)
+++ lldb/trunk/source/Plugins/Process/minidump/ProcessMinidump.cpp Thu Dec 27 01:44:32 2018
@@ -579,7 +579,7 @@ public:
       s.Printf("\n");
     }
     auto DumpTextStream = [&](MinidumpStreamType stream_type,
-        llvm::StringRef label = llvm::StringRef()) -> void {
+                              llvm::StringRef label) -> void {
       auto bytes = minidump.GetStream(stream_type);
       if (!bytes.empty()) {
         if (label.empty())
@@ -588,7 +588,7 @@ public:
       }
     };
     auto DumpBinaryStream = [&](MinidumpStreamType stream_type,
-        llvm::StringRef label = llvm::StringRef()) -> void {
+                                llvm::StringRef label) -> void {
       auto bytes = minidump.GetStream(stream_type);
       if (!bytes.empty()) {
         if (label.empty())




More information about the lldb-commits mailing list