[x265] [7bbdd9c] Compile error at 79-per-cent

Steve Borho steve at borho.org
Thu Sep 26 21:12:48 CEST 2013


On Thu, Sep 26, 2013 at 1:39 PM, JMK <three4teen16 at coldmail.nu> wrote:

> [ 79%] Building CXX object encoder/CMakeFiles/encoder.dir/motion.cpp.obj
> f:/GITS/X265/0926/7bbdd/source/encoder/motion.cpp: In member function 'int
> x265::MotionEstimate:
> :motionEstimate(x265::ReferencePlanes*, const x265::MV&, const x265::MV&,
> const x265::MV&, int,
> const x265::MV*, int, x265::MV&)':
> f:/GITS/X265/0926/7bbdd/source/encoder/motion.cpp:824:24: error:
> declaration of 'fref' shadows a
> previous local [-Werror=shadow]
> pixel *fref = ref->fpelPlane + blockOffset + (qmv0.x >> 2) + (qmv0.y >> 2)
> * ref->lumaStride;
>                         ^
> f:/GITS/X265/0926/7bbdd/source/encoder/motion.cpp:288:12: error: shadowed
> declaration is here
> [-Werror=shadow]
> pixel *fref = ref->fpelPlane + blockOffset;
>             ^
> cc1plus.exe: all warnings being treated as errors
> make[2]: *** [encoder/CMakeFiles/encoder.dir/motion.cpp.obj] Error 1
> make[1]: *** [encoder/CMakeFiles/encoder.dir/all] Error 2
> make: *** [all] Error 2
>
> _____________________________________________________________
> ps. Do you like my email address? Get yourself a coldmail.nu address too
> http://www.coldmail.nu (it's free!)
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>

Fix pushed.  There is now a cmake build option "WARNINGS_AS_ERRORS" which
defaults to OFF.  When disabled, GCC builds will no longer stop on compile
warnings.

-- 
Steve Borho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20130926/e2faf26c/attachment.html>


More information about the x265-devel mailing list