- edited description
Some Warnings (-Warray-bounds and -Wmaybe-uninitialized)
Issue #66
resolved
Hello everybody, I think this is new, or before I don't pay attention about it, but I get this warnings:
[ 19%] [ 20%] Building CXX object encoder/CMakeFiles/encoder.dir/cturow.cpp.obj
Building CXX object encoder/CMakeFiles/encoder.dir/level.cpp.obj
D:/_System/mingw64_Juni2014/build32/x265-hg/source/encoder/level.cpp: In function 'void x265::determineLevel(const x265_param&, x265::Profile::Name&, x265::Level::Name&, x265::Level::Tier&)':
D:/_System/mingw64_Juni2014/build32/x265-hg/source/encoder/level.cpp:143:24: warning: array subscript is above array bounds [-Warray-bounds]
while (levels[i].levelIdc < param.levelIdc && levels[i].levelIdc)
^
D:/_System/mingw64_Juni2014/build32/x265-hg/source/encoder/level.cpp:143:24: warning: array subscript is above array bounds [-Warray-bounds]
[ 21%] [ 22%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/blockcopy8.asm.obj
Building ASM_YASM object common/CMakeFiles/common.dir/x86/pixeladd8.asm.obj
[ 23%] [ 25%] Building CXX object encoder/CMakeFiles/encoder.dir/nal.cpp.obj
Building ASM_YASM object common/CMakeFiles/common.dir/x86/dct8.asm.obj
[ 26%] [ 27%] Building CXX object encoder/CMakeFiles/encoder.dir/sei.cpp.obj
[ 28%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/sad-a.asm.obj
Building CXX object encoder/CMakeFiles/encoder.dir/entropy.cpp.obj
[ 29%] Building CXX object encoder/CMakeFiles/encoder.dir/dpb.cpp.obj
[ 30%] Building CXX object encoder/CMakeFiles/encoder.dir/ratecontrol.cpp.obj
[ 32%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/intrapred8.asm.obj
[ 33%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/ipfilter8.asm.obj
D:/_System/mingw64_Juni2014/build32/x265-hg/source/encoder/ratecontrol.cpp: In member function 'bool x265::RateControl::initPass2()':
D:/_System/mingw64_Juni2014/build32/x265-hg/source/encoder/ratecontrol.cpp:731:6: warning: 'minVal' may be used uninitialized in this function [-Wmaybe-uninitialized]
bool RateControl::initPass2()
^
D:/_System/mingw64_Juni2014/build32/x265-hg/source/encoder/ratecontrol.cpp:731:6: warning: 'maxVal' may be used uninitialized in this function [-Wmaybe-uninitialized]
D:/_System/mingw64_Juni2014/build32/x265-hg/source/encoder/ratecontrol.cpp:731:6: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
D:/_System/mingw64_Juni2014/build32/x265-hg/source/encoder/ratecontrol.cpp:731:6: warning: 'minVal' may be used uninitialized in this function [-Wmaybe-uninitialized]
D:/_System/mingw64_Juni2014/build32/x265-hg/source/encoder/ratecontrol.cpp:731:6: warning: 'maxVal' may be used uninitialized in this function [-Wmaybe-uninitialized]
D:/_System/mingw64_Juni2014/build32/x265-hg/source/encoder/ratecontrol.cpp:731:6: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
[ 34%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/loopfilter.asm.obj
Maybe is not so important, because the compiling works and the exe to. My system: Windows 7, msys2, mingw-w64, gcc 4.9.0
Comments (4)
-
reporter -
reporter - edited description
-
the level.cpp warnings were fixed by bf78ebd06ed0, the rate control warnings were fixed by 3801142d080d
-
- changed status to resolved
- Log in to comment