https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68954
--- Comment #9 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to rguent...@suse.de from comment #6) > I agree the new behavior makes sense but I wondered if it was > intentionally that for warnings enabled by default (no -W*) we > continue issueing a warning rather than an error with -Werror. No, it wasn't intentional. It was a buggy side effect of using the pragma, even thought the pragma doesn't apply because of the location.