[x265] Many more warnings by GCC 4.8.2
Mario Rohkrämer
contact at ligh.de
Mon Jul 21 06:29:40 CEST 2014
No panic; I know that many reasons for warnings are less than serious.
Just reporting.
__
h:/MSYS/home/LigH/x265/source/Lib/TLibCommon/TComWeightPrediction.cpp: In
member function 'void
x265::TComWeightPrediction::getWpScaling(x265::TComDataCU*, int, int,
x265::WeightParam*&, x265::WeightParam*&)':
h:/MSYS/home/LigH/x265/source/Lib/TLibCommon/TComWeightPrediction.cpp:518:62:
warning: suggest braces around empty body in an 'else' statement
[-Wempty-body]
X265_CHECK(0, "unexpected wpScaling configuration\n");
^
h:/MSYS/home/LigH/x265/source/Lib/TLibCommon/TComWeightPrediction.cpp: In
member function 'void
x265::TComWeightPrediction::xWeightedPredictionBi(x265::TComDataCU*,
x265::TComYuv*, x265::TComYuv*, int, int, uint32_t, int, int,
x265::TComYuv*, bool, bool)':
h:/MSYS/home/LigH/x265/source/Lib/TLibCommon/TComWeightPrediction.cpp:537:45:
warning: 'pwp1' may be used uninitialized in this function
[-Wmaybe-uninitialized]
wp1[yuv].round = wp0[yuv].round;
^
h:/MSYS/home/LigH/x265/source/Lib/TLibCommon/TComWeightPrediction.cpp:567:26:
note: 'pwp1' was declared here
WeightParam *pwp0, *pwp1;
^
h:/MSYS/home/LigH/x265/source/Lib/TLibCommon/TComWeightPrediction.cpp:530:51:
warning: 'pwp0' may be used uninitialized in this function
[-Wmaybe-uninitialized]
wp0[yuv].w = wp0[yuv].inputWeight;
^
h:/MSYS/home/LigH/x265/source/Lib/TLibCommon/TComWeightPrediction.cpp:567:19:
note: 'pwp0' was declared here
WeightParam *pwp0, *pwp1;
^
h:/MSYS/home/LigH/x265/source/Lib/TLibCommon/TComWeightPrediction.cpp: In
member function 'void
x265::TComWeightPrediction::xWeightedPredictionBi(x265::TComDataCU*,
x265::ShortYuv*, x265::ShortYuv*, int, int, uint32_t, int, int,
x265::TComYuv*, bool, bool)':
h:/MSYS/home/LigH/x265/source/Lib/TLibCommon/TComWeightPrediction.cpp:537:45:
warning: 'pwp1' may be used uninitialized in this function
[-Wmaybe-uninitialized]
wp1[yuv].round = wp0[yuv].round;
^
h:/MSYS/home/LigH/x265/source/Lib/TLibCommon/TComWeightPrediction.cpp:603:26:
note: 'pwp1' was declared here
WeightParam *pwp0, *pwp1;
^
h:/MSYS/home/LigH/x265/source/Lib/TLibCommon/TComWeightPrediction.cpp:530:51:
warning: 'pwp0' may be used uninitialized in this function
[-Wmaybe-uninitialized]
wp0[yuv].w = wp0[yuv].inputWeight;
^
h:/MSYS/home/LigH/x265/source/Lib/TLibCommon/TComWeightPrediction.cpp:603:19:
note: 'pwp0' was declared here
WeightParam *pwp0, *pwp1;
^
__
h:/MSYS/home/LigH/x265/source/encoder/level.cpp: In function 'void
x265::determineLevel(const x265_param&, x265::Profile::Name&,
x265::Level::Name&, x265::Level::Tier&)':
h:/MSYS/home/LigH/x265/source/encoder/level.cpp:143:24: warning: array
subscript is above array bounds [-Warray-bounds]
while (levels[i].levelIdc < param.levelIdc && levels[i].levelIdc)
^
h:/MSYS/home/LigH/x265/source/encoder/level.cpp:143:24: warning: array
subscript is above array bounds [-Warray-bounds]
__
h:/MSYS/home/LigH/x265/source/encoder/ratecontrol.cpp: In member function
'bool x265::RateControl::initPass2()':
h:/MSYS/home/LigH/x265/source/encoder/ratecontrol.cpp:728:6: warning:
'minVal' may be used uninitialized in this function [-Wmaybe-uninitialized]
bool RateControl::initPass2()
^
h:/MSYS/home/LigH/x265/source/encoder/ratecontrol.cpp:728:6: warning:
'maxVal' may be used uninitialized in this function [-Wmaybe-uninitialized]
h:/MSYS/home/LigH/x265/source/encoder/ratecontrol.cpp:728:6: warning: 'a'
may be used uninitialized in this function [-Wmaybe-uninitialized]
h:/MSYS/home/LigH/x265/source/encoder/ratecontrol.cpp:728:6: warning:
'minVal' may be used uninitialized in this function [-Wmaybe-uninitialized]
h:/MSYS/home/LigH/x265/source/encoder/ratecontrol.cpp:728:6: warning:
'maxVal' may be used uninitialized in this function [-Wmaybe-uninitialized]
h:/MSYS/home/LigH/x265/source/encoder/ratecontrol.cpp:728:6: warning: 'a'
may be used uninitialized in this function [-Wmaybe-uninitialized]
--
Fun and success!
Mario *LigH* Rohkrämer
mailto:contact at ligh.de
More information about the x265-devel
mailing list