https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96063 --- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> --- What's wrong with checking the return value of warning_at as in the patch in comment 8?