mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
635246c462
commit
3a6ad822da
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user