https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89051
--- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> --- The test passes without the -Wno-error=pedantic so it looks like it's not necessary. I must have thought it was for some reason. But to make sure I understand you correctly: do you mean that -Wpedantic -Wno-error=pedantic suppresses the pedantic warnings? (I would expect that to retain the pedantic warnings and not make them errors even if -Werror were on the command line; unless -Wno-error=pedantic were followed by -Werror=pedantic.)