From 7b4d3c5a245e153164990f8e174ca50167a1f8d6 Mon Sep 17 00:00:00 2001 From: Phenom Date: Sat, 15 Jul 2017 11:25:54 +0200 Subject: [PATCH] Fix warning: this statement may fall through /libretroshare/src/util/rscompress.cc:165: warning: this statement may fall through [-Wimplicit-fallthrough=] ret = Z_DATA_ERROR; /* and fall through */ /home/phenom/GIT/RetroShare/trunk/libretroshare/src/util/rscompress.cc: 166: here case Z_DATA_ERROR: --- libretroshare/src/util/rscompress.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libretroshare/src/util/rscompress.cc b/libretroshare/src/util/rscompress.cc index 42b077e1c..1942e4feb 100644 --- a/libretroshare/src/util/rscompress.cc +++ b/libretroshare/src/util/rscompress.cc @@ -163,6 +163,7 @@ bool RsCompress::uncompress_memory_chunk(const uint8_t *input_mem,const uint32_t switch (ret) { case Z_NEED_DICT: ret = Z_DATA_ERROR; /* and fall through */ + /* fallthrough */ case Z_DATA_ERROR: case Z_MEM_ERROR: (void)inflateEnd(&strm);