[x265] Commit db1151b - Compiler Error at 15%

Steve Borho steve at borho.org
Thu Nov 21 18:46:49 CET 2013


On Nov 21, 2013, at 8:53 AM, JMK <three4teen16 at coldmail.nu> wrote:

> Using MSYS + GCC 4.8.1:
> 
> [ 15%] Building CXX object encoder/CMakeFiles/encoder.dir/slicetype.cpp.obj
> F:/GITS/X265/1121/source/encoder/slicetype.cpp: In member function 'void x265::Lookahead::slicetypeDecide()':
> F:/GITS/X265/1121/source/encoder/slicetype.cpp:827:18: error: 'list[-1]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
>         TComPic *list[X265_BFRAME_MAX + 1];
>                  ^
> cc1plus.exe: all warnings being treated as errors
> make[2]: *** [encoder/CMakeFiles/encoder.dir/slicetype.cpp.obj] Error 1
> make[1]: *** [encoder/CMakeFiles/encoder.dir/all] Error 2
> make: *** [all] Error 2

How is it that I also have MSYS GCC 4.8.1 and I don't get this build error?

the for-loop just below that line is pretty convoluted, so I can understand the compiler getting confused.  Does changing the line below the loop as below help?:

int bframes = X265_MAX(0, j - 1);

--
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20131121/9a6dc69a/attachment.sig>


More information about the x265-devel mailing list