[Libreoffice-commits] online.git: net/WebSocketHandler.hpp

Tor Lillqvist tml at collabora.com
Thu Oct 26 08:47:54 UTC 2017


 net/WebSocketHandler.hpp |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 6b0faf9d97d9c479f3297ccfc0bf1b06d1de0e34
Author: Tor Lillqvist <tml at collabora.com>
Date:   Thu Oct 26 11:38:43 2017 +0300

    Avoid warning "this statement may fall through" when intentional
    
    Change-Id: I8d8bcb4747a1933e4ecefe1220a80a355e60317f

diff --git a/net/WebSocketHandler.hpp b/net/WebSocketHandler.hpp
index 7c52cf58..383f1139 100644
--- a/net/WebSocketHandler.hpp
+++ b/net/WebSocketHandler.hpp
@@ -217,6 +217,11 @@ public:
         case WSOpCode::Ping:
             LOG_ERR("#" << socket->getFD() << ": Clients should not send pings, only servers");
             // drop through
+#if defined __clang__
+            [[clang::fallthrough]];
+#elif defined __GNUC__ && __GNUC__ >= 7
+            [[fallthrough]];
+#endif
         case WSOpCode::Close:
             if (!_shuttingDown)
             {


More information about the Libreoffice-commits mailing list