https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92289
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- In this particular case, there is instrumentation added because of the -fsanitize=return for the missing return in the function and that affects the warning location.