Enable more compiler warnings and treat them as errors.
This commit is contained in:
+6
-3
@@ -59,9 +59,12 @@ static SortOrder ForceAppropriateSort( PlayMode pm, SortOrder so )
|
||||
case SORT_NONSTOP_COURSES:
|
||||
case SORT_ENDLESS_COURSES:
|
||||
so = SortOrder_Invalid;
|
||||
break;
|
||||
default:
|
||||
return so;
|
||||
break;
|
||||
}
|
||||
|
||||
return so;
|
||||
}
|
||||
|
||||
MusicWheelItem *MusicWheel::MakeItem()
|
||||
@@ -152,7 +155,7 @@ void MusicWheel::BeginScreen()
|
||||
const std::vector<MusicWheelItemData *> &from = getWheelItemsData(SORT_MODE_MENU);
|
||||
for( unsigned i=0; i<from.size(); i++ )
|
||||
{
|
||||
ASSERT( &*from[i]->m_pAction != nullptr );
|
||||
ASSERT( !from[i]->m_pAction.isNull() );
|
||||
if( from[i]->m_pAction->DescribesCurrentModeForAllPlayers() )
|
||||
{
|
||||
m_sLastModeMenuItem = from[i]->m_pAction->m_sName;
|
||||
@@ -427,7 +430,7 @@ void MusicWheel::GetSongList( std::vector<Song*> &arraySongs, SortOrder so )
|
||||
apAllSongs = SONGMAN->GetSongs(GAMESTATE->m_sPreferredSongGroup);
|
||||
break;
|
||||
}
|
||||
// otherwise fall through
|
||||
[[fallthrough]];
|
||||
default:
|
||||
apAllSongs = SONGMAN->GetAllSongs();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user