https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66007
Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|paolo.carlini at oracle dot com |jason at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |paolo.carlini at oracle dot com --- Comment #10 from Paolo Carlini <paolo.carlini at oracle dot com> --- Right Jakub. To my taste, fiddling directly with those counters isn't that nice, but I know we do it in a few other places. In any case this code is rather hackish anyway, we try to do something we don't do anywhere else, effectively suppressing an hard error via -Wno-*. Also, as I already said, I was thinking that normally elsewhere in the code, we do not handle pedwarns as errors, we don't consider that -pedantic-errors may be in effect (in the pedwarn right before too). What can I say, maybe we can ask Jason, which solution he prefers in principle? In the meanwhile I do some testing.