Fix warning: this statement may fall through

/retroshare-gui/src/gui/RetroShareLink.cpp:585: warning: this statement
may fall through [-Wimplicit-fallthrough=]
    if(!checkSSLId(_SSLid))
/retroshare-gui/src/gui/RetroShareLink.cpp:587: here
   case TYPE_FILE:
This commit is contained in:
Phenom 2017-07-15 13:06:19 +02:00 committed by csoler
parent 9a4ed8012c
commit f23c84fd4e

View File

@ -608,6 +608,7 @@ void RetroShareLink::check()
case TYPE_EXTRAFILE:
if(!checkSSLId(_SSLid))
_valid = false; // no break! We also test file stuff below.
/* fallthrough */
case TYPE_FILE:
if(_size > (((uint64_t)1)<<40)) // 1TB. Who has such large files?
_valid = false;