Add fallthrough comments and remove -Wimplicit-fallthrough=0

Signed-off-by: Jonas Kvinge <jonas@jkvinge.net>
This commit is contained in:
Jonas Kvinge
2019-09-16 21:20:12 +02:00
parent cf9f48d8da
commit bdc089290d
11 changed files with 22 additions and 11 deletions

View File

@@ -867,11 +867,12 @@ void TidalRequest::SongsFinishCheck(const qint64 artist_id, const qint64 album_i
AddSongsRequest(offset_next);
break;
case QueryType_SearchSongs:
// If artist_id and album_id isn't zero it means that it's a songs search where we fetch all albums too. So pass through.
// If artist_id and album_id isn't zero it means that it's a songs search where we fetch all albums too. So fallthrough.
if (artist_id == 0 && album_id == 0) {
AddSongsSearchRequest(offset_next);
break;
}
// fallthrough
case QueryType_Artists:
case QueryType_SearchArtists:
case QueryType_Albums: