[Lldb-commits] [lldb] r248365 - Fix covered-switch-default warning in FormatManager.
Bruce Mitchener via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 22 19:33:31 PDT 2015
Author: brucem
Date: Tue Sep 22 21:33:30 2015
New Revision: 248365
URL: http://llvm.org/viewvc/llvm-project?rev=248365&view=rev
Log:
Fix covered-switch-default warning in FormatManager.
Summary:
The default case doesn't need to be here as the switch covers
all possible values. If there's a new "lazy bool" value added
in the future, the compiler would start to warn about the new
case not being covered.
Reviewers: granata.enrico, clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D13084
Modified:
lldb/trunk/source/DataFormatters/FormatManager.cpp
Modified: lldb/trunk/source/DataFormatters/FormatManager.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/DataFormatters/FormatManager.cpp?rev=248365&r1=248364&r2=248365&view=diff
==============================================================================
--- lldb/trunk/source/DataFormatters/FormatManager.cpp (original)
+++ lldb/trunk/source/DataFormatters/FormatManager.cpp Tue Sep 22 21:33:30 2015
@@ -570,7 +570,6 @@ FormatManager::ShouldPrintAsOneLiner (Va
case eLazyBoolYes:
return true;
case eLazyBoolCalculate:
- default:
break;
}
}
More information about the lldb-commits
mailing list