Bug #21093
closedcompilation warnings on rawhide from /root/ceph/src/zstd/lib
0%
Description
-- Build files have been written to: /root/ceph/build/src/compressor/zstd/libzstd
[ 3%] Building C object src/lua/CMakeFiles/liblua.dir/src/lapi.c.o
[ 4%] Performing forcebuild step for 'zstd_ext'
[ 4%] Performing build step for 'zstd_ext'
Scanning dependencies of target libzstd_static
[ 6%] Building C object lib/CMakeFiles/libzstd_static.dir/root/ceph/src/zstd/lib/common/entropy_common.c.o
[ 4%] Building C object src/lua/CMakeFiles/liblua.dir/src/lcode.c.o
[ 13%] Building C object lib/CMakeFiles/libzstd_static.dir/root/ceph/src/zstd/lib/common/zstd_common.c.o
[ 20%] Building C object lib/CMakeFiles/libzstd_static.dir/root/ceph/src/zstd/lib/common/error_private.c.o
[ 26%] Building C object lib/CMakeFiles/libzstd_static.dir/root/ceph/src/zstd/lib/common/xxhash.c.o
[ 33%] Building C object lib/CMakeFiles/libzstd_static.dir/root/ceph/src/zstd/lib/common/fse_decompress.c.o
In file included from /root/ceph/src/zstd/lib/common/fse_decompress.c:63:0:
/root/ceph/src/zstd/lib/common/bitstream.h: In function ‘BIT_initDStream’:
/root/ceph/src/zstd/lib/common/bitstream.h:277:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 7: bitD->bitContainer = (size_t)(((const BYTE*)(srcBuffer))[6]) << (sizeof(bitD->bitContainer)*8 - 16);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/lib/common/bitstream.h:278:13: note: here
case 6: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[5]) << (sizeof(bitD->bitContainer)*8 - 24);
~~
/root/ceph/src/zstd/lib/common/bitstream.h:278:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 6: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[5]) << (sizeof(bitD->bitContainer)*8 - 24);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/lib/common/bitstream.h:279:13: note: here
case 5: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[4]) << (sizeof(bitD->bitContainer)*8 - 32);
~~
/root/ceph/src/zstd/lib/common/bitstream.h:279:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 5: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[4]) << (sizeof(bitD->bitContainer)*8 - 32);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/lib/common/bitstream.h:280:13: note: here
case 4: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[3]) << 24;
~~
/root/ceph/src/zstd/lib/common/bitstream.h:280:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 4: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[3]) << 24;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/lib/common/bitstream.h:281:13: note: here
case 3: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[2]) << 16;
~~
/root/ceph/src/zstd/lib/common/bitstream.h:281:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 3: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[2]) << 16;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/lib/common/bitstream.h:282:13: note: here
case 2: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[1]) << 8;
~~
[ 40%] Building C object lib/CMakeFiles/libzstd_static.dir/root/ceph/src/zstd/lib/compress/fse_compress.c.o
[ 46%] Building C object lib/CMakeFiles/libzstd_static.dir/root/ceph/src/zstd/lib/compress/huf_compress.c.o
/root/ceph/src/zstd/lib/compress/huf_compress.c: In function ‘HUF_compress1X_usingCTable’:
/root/ceph/src/zstd/lib/compress/huf_compress.c:425:8: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (sizeof((stream)->bitContainer)*8 < HUF_TABLELOG_MAX*4+7) HUF_FLUSHBITS(stream)
^
/root/ceph/src/zstd/lib/compress/huf_compress.c:446:18: note: in expansion of macro ‘HUF_FLUSHBITS_2’
HUF_FLUSHBITS_2(&bitC);
^~~~~~~~~~~~~~
/root/ceph/src/zstd/lib/compress/huf_compress.c:447:9: note: here
case 2 : HUF_encodeSymbol(&bitC, ip[n 1], CTable);
^~~
/root/ceph/src/zstd/lib/compress/huf_compress.c:422:8: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (sizeof((stream)->bitContainer)*8 < HUF_TABLELOG_MAX*2+7) HUF_FLUSHBITS(stream)
^
/root/ceph/src/zstd/lib/compress/huf_compress.c:448:18: note: in expansion of macro ‘HUF_FLUSHBITS_1’
HUF_FLUSHBITS_1(&bitC);
^~~~~~~~~~~~~~
/root/ceph/src/zstd/lib/compress/huf_compress.c:449:9: note: here
case 1 : HUF_encodeSymbol(&bitC, ip[n+ 0], CTable);
^~~
[ 53%] Building C object lib/CMakeFiles/libzstd_static.dir/root/ceph/src/zstd/lib/compress/zstd_compress.c.o
/root/ceph/src/zstd/lib/compress/zstd_compress.c: In function ‘ZSTD_compressStream_generic’:
/root/ceph/src/zstd/lib/compress/zstd_compress.c:3045:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
zcs->stage = zcss_flush; /* pass-through to flush stage /
~~~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/lib/compress/zstd_compress.c:3048:9: note: here
case zcss_flush:
~~
[ 4%] Building C object src/lua/CMakeFiles/liblua.dir/src/lctype.c.o
[ 4%] Building C object src/lua/CMakeFiles/liblua.dir/src/ldebug.c.o
[ 4%] Building C object src/lua/CMakeFiles/liblua.dir/src/ldo.c.o
[ 60%] Building C object lib/CMakeFiles/libzstd_static.dir/root/ceph/src/zstd/lib/decompress/huf_decompress.c.o
In file included from /root/ceph/src/zstd/lib/decompress/huf_decompress.c:55:0:
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h: In function ‘BIT_initDStream’:
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:277:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 7: bitD->bitContainer += (size_t)(((const BYTE)(srcBuffer))[6]) << (sizeof(bitD->bitContainer)*8 - 16);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:278:13: note: here
case 6: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[5]) << (sizeof(bitD->bitContainer)*8 - 24);
~~
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:278:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 6: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[5]) << (sizeof(bitD->bitContainer)*8 - 24);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:279:13: note: here
case 5: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[4]) << (sizeof(bitD->bitContainer)*8 - 32);
~~
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:279:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 5: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[4]) << (sizeof(bitD->bitContainer)*8 - 32);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:280:13: note: here
case 4: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[3]) << 24;
~~
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:280:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 4: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[3]) << 24;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:281:13: note: here
case 3: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[2]) << 16;
~~
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:281:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 3: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[2]) << 16;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:282:13: note: here
case 2: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[1]) << 8;
~~
[ 4%] Building C object src/lua/CMakeFiles/liblua.dir/src/ldump.c.o
[ 66%] Building C object lib/CMakeFiles/libzstd_static.dir/root/ceph/src/zstd/lib/decompress/zstd_decompress.c.o
In file included from /root/ceph/src/zstd/build/cmake/lib/../../../lib/common/fse.h:278:0,
from /root/ceph/src/zstd/lib/decompress/zstd_decompress.c:49:
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h: In function ‘BIT_initDStream’:
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:277:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 7: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[6]) << (sizeof(bitD->bitContainer)*8 - 16);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:278:13: note: here
case 6: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[5]) << (sizeof(bitD->bitContainer)*8 - 24);
~~
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:278:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 6: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[5]) << (sizeof(bitD->bitContainer)*8 - 24);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:279:13: note: here
case 5: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[4]) << (sizeof(bitD->bitContainer)*8 - 32);
~~
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:279:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 5: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[4]) << (sizeof(bitD->bitContainer)*8 - 32);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:280:13: note: here
case 4: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[3]) << 24;
~~
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:280:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 4: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[3]) << 24;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:281:13: note: here
case 3: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[2]) << 16;
~~
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:281:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 3: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[2]) << 16;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/build/cmake/lib/../../../lib/common/bitstream.h:282:13: note: here
case 2: bitD->bitContainer += (size_t)(((const BYTE*)(srcBuffer))[1]) << 8;
~~
/root/ceph/src/zstd/lib/decompress/zstd_decompress.c: In function ‘ZSTD_decompressContinue’:
/root/ceph/src/zstd/lib/decompress/zstd_decompress.c:1531:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
dctx->expected = 0; /* not necessary to copy more */
~~~~~~~~~~~~~~~
/root/ceph/src/zstd/lib/decompress/zstd_decompress.c:1533:5: note: here
case ZSTDds_decodeFrameHeader:
~~
/root/ceph/src/zstd/lib/decompress/zstd_decompress.c: In function ‘ZSTD_decompressStream’:
/root/ceph/src/zstd/lib/decompress/zstd_decompress.c:2063:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
zds->stage = zdss_read;
~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/lib/decompress/zstd_decompress.c:2066:9: note: here
case zdss_read:
~~
/root/ceph/src/zstd/lib/decompress/zstd_decompress.c:2086:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
zds->stage = zdss_load;
~~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/lib/decompress/zstd_decompress.c:2090:9: note: here
case zdss_load:
~~
/root/ceph/src/zstd/lib/decompress/zstd_decompress.c:2109:32: warning: this statement may fall through [-Wimplicit-fallthrough=]
zds->stage = zdss_flush;
~~~~~~~~~~~~~~~~~~~
/root/ceph/src/zstd/lib/decompress/zstd_decompress.c:2113:9: note: here
case zdss_flush: