]> granicus.if.org Git - clang/commit
Permit -Wswitch coverage for enumerations.
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 12 Jun 2014 19:33:26 +0000 (19:33 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 12 Jun 2014 19:33:26 +0000 (19:33 +0000)
commitcb4e543bc78da46d23c1df47b61d8dc417753a5b
tree018fbfe956c2914253d060df14ff7eacc5f5e89b
parentd2f657fb156f0c4e5173e79440e15d37dbeb99ae
Permit -Wswitch coverage for enumerations.

Thanks to David Blakie and Richard Smith for pointing out that we can retain the
-Wswitch coverage while avoiding the warning from GCC by pushing the unreachable
outside of the switch!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210812 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/DiagnosticIDs.cpp
lib/Format/Format.cpp