mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-29 00:27:27 -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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue