]> git.ipfire.org Git - thirdparty/zstd.git/commit
lib/compress: warning: this statement may fall through 695/head
authorJos Collin <jcollin@redhat.com>
Thu, 11 May 2017 07:47:20 +0000 (13:17 +0530)
committerJos Collin <jcollin@redhat.com>
Thu, 11 May 2017 07:47:26 +0000 (13:17 +0530)
commit7cd7a7564baaebdb8f4079e63ec62cd3841dc1d2
tree248317374a95aafc4741fba6992ea31b81296634
parenta8ced49db3634a102ba2cc844823428f43f7be05
lib/compress: warning: this statement may fall through

The following warning appears during build.

../lib/compress/huf_compress.c: In function ‘HUF_compress1X_usingCTable’:
../lib/compress/huf_compress.c:444:8: warning: this statement may fall through [-Wimplicit-fallthrough=]
     if (sizeof((stream)->bitContainer)*8 < HUF_TABLELOG_MAX*4+7) HUF_FLUSHBITS(stream)
        ^
../lib/compress/huf_compress.c:465:18: note: in expansion of macro ‘HUF_FLUSHBITS_2’
                  HUF_FLUSHBITS_2(&bitC);
                  ^~~~~~~~~~~~~~~
../lib/compress/huf_compress.c:466:9: note: here
         case 2 : HUF_encodeSymbol(&bitC, ip[n+ 1], CTable);

../lib/compress/zstd_compress.c: In function ‘ZSTD_compressStream_generic’:
../lib/compress/zstd_compress.c:3366:34: warning: this statement may fall through [-Wimplicit-fallthrough=]
                 zcs->streamStage = zcss_flush;   /* pass-through to flush stage */
                 ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
../lib/compress/zstd_compress.c:3369:9: note: here
         case zcss_flush:

Signed-off-by: Jos Collin <jcollin@redhat.com>
lib/compress/huf_compress.c
lib/compress/zstd_compress.c