https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118253
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >-fsanitize=address,undefined That is documented to cause extra warnings. See slightly below https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Instrumentation-Options.html#index-fsanitize_003dbuiltin: Note that sanitizers tend to increase the rate of false positive warnings, most notably those around -Wmaybe-uninitialized. We recommend against combining -Werror and [the use of] sanitizers.