From f23c84fd4e2badc9cf642810bbcadac563467139 Mon Sep 17 00:00:00 2001 From: Phenom Date: Sat, 15 Jul 2017 13:06:19 +0200 Subject: [PATCH] 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: --- retroshare-gui/src/gui/RetroShareLink.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/retroshare-gui/src/gui/RetroShareLink.cpp b/retroshare-gui/src/gui/RetroShareLink.cpp index 27902dd66..e0559d272 100644 --- a/retroshare-gui/src/gui/RetroShareLink.cpp +++ b/retroshare-gui/src/gui/RetroShareLink.cpp @@ -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;