Fix warning: this statement may fall through

/libretroshare/src/ft/ftchunkmap.cc:190: warning: this statement may
fall through [-Wimplicit-fallthrough=]
    case FileChunksInfo::CHUNK_CHECKING: _file_is_complete = false ;

/libretroshare/src/ft/ftchunkmap.cc:191: here
    case FileChunksInfo::CHUNK_DONE:   _total_downloaded +=
sizeOfChunk(i) ;
This commit is contained in:
Phenom 2017-07-15 11:03:58 +02:00 committed by csoler
parent 635246c462
commit 3a6ad822da

View File

@ -188,6 +188,7 @@ void ChunkMap::updateTotalDownloaded()
switch(_map[i]) switch(_map[i])
{ {
case FileChunksInfo::CHUNK_CHECKING: _file_is_complete = false ; case FileChunksInfo::CHUNK_CHECKING: _file_is_complete = false ;
/* fallthrough */
case FileChunksInfo::CHUNK_DONE: _total_downloaded += sizeOfChunk(i) ; case FileChunksInfo::CHUNK_DONE: _total_downloaded += sizeOfChunk(i) ;
break ; break ;
default: default: