Some news, gcc-12 includes the option '-ftrivial-auto-var-init=zero'. Linux Mint 21.1 normally uses gcc-11. Install the new gcc explicitly with apt (and change the alternative because of clang) solves the problem to me.
I made some changes seance default install, Mint release updates included. But Ubuntu 22.04 install gcc-11 normally by gcc package. This could break with a new compiler option.
Some news, gcc-12 includes the option '-ftrivial- auto-var- init=zero' . Linux Mint 21.1 normally uses gcc-11. Install the new gcc explicitly with apt (and change the alternative because of clang) solves the problem to me.
I made some changes seance default install, Mint release updates included. But Ubuntu 22.04 install gcc-11 normally by gcc package. This could break with a new compiler option.