https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90058
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- As has been said many times, the -fsanitize= instrumentation affects (sometimes a lot) the optimizations and so introduces various late warning false positives. Use -fsanitize= to build the instrumented code, but pay more attention to warnings from non-instrumented builds.