https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91148
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic CC| |msebor at gcc dot gnu.org --- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> --- Besides improving the consistency of GCC diagnostic output, the purpose of -Wformat-diag is also to reduce the work for translators and those of us who at the end of each release spend time resolving the bugs translators raise. Suppressing the warning (either with pragma GCC diagnostic ignored or some other such mechanism) doesn't help with the latter so I would like to get away from it in the future. If having an escape hatch from these warnings is important let's come up with one that also works for translators. It could be a special format directive, like "internal error: " at the beginning of the format string. Some translators (but not all of them) already avoid translating those messages. Or it could be a new fatal_error_and_continue kind of an API that's exempt from the warning and that avoids marking the format string for translation.