Make implicit switch fallthrough an error in the Xcode project and fix all places that do it
Since we can't directly use C++11 attributes, I've chosen BOOST_FALLTHROUGH to annotate intentional fallthroughs. Thanks to @fosnola for spotting a missing break, which triggered this.
This commit is contained in:
@@ -921,7 +921,7 @@ short char_select_pc(short mode,const char *title) {
|
||||
case 3:
|
||||
if(!univ.party[i].has_space())
|
||||
can_pick = false;
|
||||
// Fallthrough intentional
|
||||
BOOST_FALLTHROUGH;
|
||||
case 0:
|
||||
if(univ.party[i].main_status != eMainStatus::ALIVE)
|
||||
can_pick = false;
|
||||
|
Reference in New Issue
Block a user