[x265] v1.1+202: Variable shadowing warning (MSYS GCC)

Deepthi Nandakumar deepthi at multicorewareinc.com
Thu Jun 26 13:23:21 CEST 2014


Thanks for notifying. Will push in a fix.
On Jun 26, 2014 4:32 PM, "Mario *LigH* Rohkrämer" <contact at ligh.de> wrote:

> Compiling with MSYS/MinGW GCC 4.8.2 reports a warning:
>
> +----
> h:/MSYS/home/Entwicklung/x265/source/Lib/TLibCommon/TComDataCU.cpp: In
> member function 'void x265::TComDataCU::copyToPic(uint8_t)':
> h:/MSYS/home/Entwicklung/x265/source/Lib/TLibCommon/TComDataCU.cpp:781:18:
> warning: declaration of 'tmp' shadows a previous local [-Wshadow]
>          uint32_t tmp  = (g_maxCUSize * g_maxCUSize) >> (depth << 1);
>                   ^
> h:/MSYS/home/Entwicklung/x265/source/Lib/TLibCommon/TComDataCU.cpp:770:14:
> warning: shadowed declaration is here [-Wshadow]
>      uint32_t tmp  = (g_maxCUSize * g_maxCUSize) >> (depth << 1);
>               ^
> h:/MSYS/home/Entwicklung/x265/source/Lib/TLibCommon/TComDataCU.cpp:782:18:
> warning: declaration of 'tmp2' shadows a previous local [-Wshadow]
>          uint32_t tmp2 = m_absIdxInLCU << m_pic->getLog2UnitSize() * 2;
>                   ^
> h:/MSYS/home/Entwicklung/x265/source/Lib/TLibCommon/TComDataCU.cpp:771:14:
> warning: shadowed declaration is here [-Wshadow]
>      uint32_t tmp2 = m_absIdxInLCU << m_pic->getLog2UnitSize() * 2;
>               ^
> +----
>
> --
>
> Fun and success!
> Mario *LigH* Rohkrämer
> mailto:contact at ligh.de
>
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20140626/aa17f902/attachment-0001.html>


More information about the x265-devel mailing list