Basic: fix warnings from GCC
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 12 Jun 2014 17:43:37 +0000 (17:43 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 12 Jun 2014 17:43:37 +0000 (17:43 +0000)
commitc9340d2575b26302b5598c5f1ac474338d99f9a2
tree71badbadff0151ac9e20c0aa172b6618735efca3
parenta6e9c3e43ae125530b7d9f158f5486ac48ca5a29
Basic: fix warnings from GCC

tools/clang/lib/Basic/DiagnosticIDs.cpp: In function ‘clang::DiagnosticIDs::Level toLevel(clang::diag::Severity)’:
tools/clang/lib/Basic/DiagnosticIDs.cpp:382:1: warning: control reaches end of non-void function [-Wreturn-type]

tools/clang/lib/Format/Format.cpp: In member function ‘virtual std::string clang::format::ParseErrorCategory::message(int) const’:
tools/clang/lib/Format/Format.cpp:282:1: warning: control reaches end of non-void function [-Wreturn-type]

Add a default cases that asserts that we handle the severity, parse error.

llvm-svn: 210804
clang/lib/Basic/DiagnosticIDs.cpp
clang/lib/Format/Format.cpp