mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
This commit is contained in:
parent
476b581506
commit
7b4d3c5a24
@ -163,6 +163,7 @@ bool RsCompress::uncompress_memory_chunk(const uint8_t *input_mem,const uint32_t
|
|||||||
switch (ret) {
|
switch (ret) {
|
||||||
case Z_NEED_DICT:
|
case Z_NEED_DICT:
|
||||||
ret = Z_DATA_ERROR; /* and fall through */
|
ret = Z_DATA_ERROR; /* and fall through */
|
||||||
|
/* fallthrough */
|
||||||
case Z_DATA_ERROR:
|
case Z_DATA_ERROR:
|
||||||
case Z_MEM_ERROR:
|
case Z_MEM_ERROR:
|
||||||
(void)inflateEnd(&strm);
|
(void)inflateEnd(&strm);
|
||||||
|
Loading…
Reference in New Issue
Block a user