[Lldb-commits] [lldb] r250667 - Silence -Wreturn-type with gcc 5.2
Saleem Abdulrasool via lldb-commits
lldb-commits at lists.llvm.org
Sun Oct 18 13:51:19 PDT 2015
Author: compnerd
Date: Sun Oct 18 15:51:18 2015
New Revision: 250667
URL: http://llvm.org/viewvc/llvm-project?rev=250667&view=rev
Log:
Silence -Wreturn-type with gcc 5.2
The switch is fully covered, mark "default" as unreachable. NFC.
Modified:
lldb/trunk/source/DataFormatters/StringPrinter.cpp
Modified: lldb/trunk/source/DataFormatters/StringPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/DataFormatters/StringPrinter.cpp?rev=250667&r1=250666&r2=250667&view=diff
==============================================================================
--- lldb/trunk/source/DataFormatters/StringPrinter.cpp (original)
+++ lldb/trunk/source/DataFormatters/StringPrinter.cpp Sun Oct 18 15:51:18 2015
@@ -258,6 +258,7 @@ StringPrinter::GetDefaultEscapingHelper
return GetPrintable(StringPrinter::StringElementType::ASCII, buffer, buffer_end, next);
};
}
+ llvm_unreachable("bad element type");
}
// use this call if you already have an LLDB-side buffer for the data
More information about the lldb-commits
mailing list