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

Mario *LigH* Rohkrämer contact at ligh.de
Thu Jun 26 13:02:10 CEST 2014


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
 


More information about the x265-devel mailing list