Log in

View Full Version : Problem with GCC 10


Jamaika
22nd November 2019, 15:23
GCC 10 has strange messages when compiling the VVC codec:
http://msystem.waw.pl/x265/mingw-gcc1000-20191116.7z
UnitTools.cpp: In function 'void PU::getInterMergeCandidates(const PredictionUnit&, MergeCtx&, int, const int&)':
UnitTools.cpp:1323:50: warning: writing 1 byte into a region of size 0 [ttps://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstringop-overflow=stringop-overflow=]
1323 | mrgCtx.interDirNeighbours [uiArrayAddr ] = 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from UnitTools.h:43,
from UnitTools.cpp:38:
ContextModelling.h:488:17: note: destination object declared here
488 | unsigned char interDirNeighbours[ MRG_MAX_NUM_CANDS ];
| ^~~~~~~~~~~~~~~~~~
UnitTools.cpp:1324:50: warning: writing 1 byte into a region of size 0 [ttps://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstringop-overflow=stringop-overflow=]
1324 | mrgCtx.GBiIdx [uiArrayAddr ] = GBI_DEFAULT;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from UnitTools.h:43,
from UnitTools.cpp:38:
ContextModelling.h:487:17: note: destination object declared here
487 | uint8_t GBiIdx [ MRG_MAX_NUM_CANDS ];
| ^~~~~~
UnitTools.cpp:1330:58: warning: writing 1 byte into a region of size 0 [ttps://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstringop-overflow=stringop-overflow=]
1330 | mrgCtx.interDirNeighbours [ uiArrayAddr ] = 3;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from UnitTools.h:43,
from UnitTools.cpp:38:
ContextModelling.h:488:17: note: destination object declared here
488 | unsigned char interDirNeighbours[ MRG_MAX_NUM_CANDS ];

Jamaika
1st December 2019, 16:19
In member function 'virtual int LibRaw::adobe_coeff(unsigned int, const char*, int)':
cc1plus.exe: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations]
In file included from dcraw_common.cpp:25:
tables/colordata.cpp:1695:33: note: within this loop
1695 | for (raw_color = j = 0; j < 12; j++)
| ~~^~~~