[Lldb-commits] [lldb] r319596 - Fix warnings in JSON.cpp, NFC
Vedant Kumar via lldb-commits
lldb-commits at lists.llvm.org
Fri Dec 1 15:29:04 PST 2017
Author: vedantk
Date: Fri Dec 1 15:29:04 2017
New Revision: 319596
URL: http://llvm.org/viewvc/llvm-project?rev=319596&view=rev
Log:
Fix warnings in JSON.cpp, NFC
These asserts are no-ops, and are supplanted by -Wcovered-switch.
Modified:
lldb/trunk/tools/debugserver/source/JSON.cpp
Modified: lldb/trunk/tools/debugserver/source/JSON.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/JSON.cpp?rev=319596&r1=319595&r2=319596&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/JSON.cpp (original)
+++ lldb/trunk/tools/debugserver/source/JSON.cpp Fri Dec 1 15:29:04 2017
@@ -58,7 +58,6 @@ uint64_t JSONNumber::GetAsUnsigned() con
case DataType::Double:
return (uint64_t)m_data.m_double;
}
- assert("Unhandled data type");
}
int64_t JSONNumber::GetAsSigned() const {
@@ -70,7 +69,6 @@ int64_t JSONNumber::GetAsSigned() const
case DataType::Double:
return (int64_t)m_data.m_double;
}
- assert("Unhandled data type");
}
double JSONNumber::GetAsDouble() const {
@@ -82,7 +80,6 @@ double JSONNumber::GetAsDouble() const {
case DataType::Double:
return m_data.m_double;
}
- assert("Unhandled data type");
}
void JSONNumber::Write(std::ostream &s) {
More information about the lldb-commits
mailing list