From 8dbb0d61afe7de6902f797e7ba371cef17679fd4 Mon Sep 17 00:00:00 2001 From: Phenom Date: Sat, 15 Jul 2017 10:57:05 +0200 Subject: [PATCH] Fix warning: this statement may fall through /libretroshare/src/dht/connectstatebox.cc:394: warning: this statement may fall through [-Wimplicit-fallthrough=] if (mNextAttemptTS > now) /libretroshare/src/dht/connectstatebox.cc:401: here default: /libretroshare/src/dht/connectstatebox.cc:406: warning: this statement may fall through [-Wimplicit-fallthrough=] if (mState != CSB_FAILED_WAIT) /libretroshare/src/dht/connectstatebox.cc:414: here case CSB_START: /libretroshare/src/dht/connectstatebox.cc:530: warning: this statement may fall through [-Wimplicit-fallthrough=] if (mNextAttemptTS > now) /libretroshare/src/dht/connectstatebox.cc:540: here default: /libretroshare/src/dht/connectstatebox.cc:543: warning: this statement may fall through [-Wimplicit-fallthrough=] if (mState != CSB_FAILED_WAIT) /libretroshare/src/dht/connectstatebox.cc:551: here case CSB_START: --- libretroshare/src/dht/connectstatebox.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libretroshare/src/dht/connectstatebox.cc b/libretroshare/src/dht/connectstatebox.cc index b54b95167..ca631687d 100644 --- a/libretroshare/src/dht/connectstatebox.cc +++ b/libretroshare/src/dht/connectstatebox.cc @@ -398,6 +398,7 @@ uint32_t PeerConnectStateBox::connectCb_direct() break; } } /* FALLTHROUGH TO START CASE */ + /* fallthrough */ default: case CSB_REVERSE_WAIT: case CSB_PROXY_WAIT: @@ -411,6 +412,7 @@ uint32_t PeerConnectStateBox::connectCb_direct() } } /* FALLTHROUGH TO START CASE */ + /* fallthrough */ case CSB_START: { /* starting up the connection */ @@ -537,6 +539,7 @@ uint32_t PeerConnectStateBox::connectCb_unreachable() break; } } /* FALLTHROUGH TO START CASE */ + /* fallthrough */ default: case CSB_DIRECT_WAIT: { @@ -548,6 +551,7 @@ uint32_t PeerConnectStateBox::connectCb_unreachable() } } /* FALLTHROUGH TO START CASE */ + /* fallthrough */ case CSB_START: { /* starting up the connection */