Impressive list of warnings during link step with current gcc 11.2.1


while at it, I noticed a huge list of warnings, when linking the Blender 3.0 from git as of today with a current gcc 11.2.1, using the openSUSE Tumbleweed default build options (LTO enabled, many warnings active, security optimized).

Some of them are clearly LTO related, which is discussible, but others look pretty scary (e.g. of class -Wstringop-over{read,flow}).

It would be nice to address the bulk of offenders sometimes, in order to make upcoming real issues more obvious.
warnings.txt (460.5 KB)