https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70275
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- I'm not sure if this is desired, but changing it is not a huge amount of work: One just needs to move the check for /* Give preference to being able to inhibit warnings, before they get reclassified to something else. */ if ((diagnostic->kind == DK_WARNING || diagnostic->kind == DK_PEDWARN) && !diagnostic_report_warnings_p (context, location)) return false; after they get reclassified within diagnostic.c: diagnostic_report_diagnostic (diagnostic_context *context, diagnostic_info *diagnostic) See https://gcc.gnu.org/wiki/GettingStarted#Basics:_Contributing_to_GCC_in_10_easy_steps