[x265] GCC 9.2.0: implicit fall-through warnings in analysis.cpp
Mario *LigH* Rohkrämer
contact at ligh.de
Fri Sep 20 15:09:27 CEST 2019
Solved, possibly due to the "Cleanup".
Mario *LigH* Rohkrämer schrieb am 17.09.2019 um 13:39:
> Compiling in MSYS2/MinGW with GCC 9.2.0 reports warnings:
>
> +----
> Scanning dependencies of target encoder
> [ 67%] Building CXX object encoder/CMakeFiles/encoder.dir/analysis.cpp.obj
> E:/MABS/build/x265-hg/source/encoder/analysis.cpp: In member function
> 'void x265_10bit::Analysis::recodeCU(const x265_10bit::CUData&, const
> x265_10bit::CUGeom&, int32_t, int32_t)':
> E:/MABS/build/x265-hg/source/encoder/analysis.cpp:2498:54: warning: this
> statement may fall through [-Wimplicit-fallthrough=]
> 2498 | case 3: mvpSelect[2] =
> mode.amvpCand[list][ref][!(mode.cu.m_mvpIdx[list][pu.puAbsPartIdx])];
> |
> ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> E:/MABS/build/x265-hg/source/encoder/analysis.cpp:2499:33: note: here
> 2499 | case 2: mvpSelect[1] = mvp;
> | ^~~~
> [ 69%] Building CXX object encoder/CMakeFiles/encoder.dir/search.cpp.obj
> E:/MABS/build/x265-hg/source/encoder/search.cpp: In member function
> 'void x265_10bit::Search::predInterSearch(x265_10bit::Mode&, const
> x265_10bit::CUGeom&, bool, uint32_t*)':
> E:/MABS/build/x265-hg/source/encoder/search.cpp:2276:42: warning: this
> statement may fall through [-Wimplicit-fallthrough=]
> 2276 | mvpIdxSel[2] = !mvpIdx;
> | ~~~~~~~~~~~~~^~~~~~~~~
> E:/MABS/build/x265-hg/source/encoder/search.cpp:2277:21: note: here
> 2277 | case 2: mvpSel[1] =
> interMode.amvpCand[list][ref][mvpIdx];
> | ^~~~
> E:/MABS/build/x265-hg/source/encoder/search.cpp:2278:42: warning: this
> statement may fall through [-Wimplicit-fallthrough=]
> 2278 | mvpIdxSel[1] = mvpIdx;
> | ~~~~~~~~~~~~~^~~~~~~~
> E:/MABS/build/x265-hg/source/encoder/search.cpp:2279:21: note: here
> 2279 | case 1: mvpSel[0] =
> interDataCTU->mv[list][cuIdx + puIdx].word;
> | ^~~~
> +----
>
--
Fun and success!
Mario *LigH* Rohkrämer
maito:contact at ligh.de
More information about the x265-devel
mailing list