https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115310
--- Comment #4 from Martin Jambor <jamborm at gcc dot gnu.org> --- (In reply to Sam James from comment #2) > In such environments, you don't need an explicit > -Werror=return-type. I agree I don't need it but it is there. > So, you're asking presumably about testing with < GCC 14 to emulate > >= GCC 14 behaviour? No. Specifically in openSUSE, -Werror=return-type is part of the default compiler flags. We would like to silence the new errors such as implicit-int in packages written in pre-99 C with putting -std=gnu89 rather than -fpermissive in package spec files. We think that -std=gnu89 option really better describes what is going on, i.e. that the code is old rather than somewhat broken. But because of the behavior described in this bug we cannot - without either also explicitely specifying -Wno-error=return-type or persuading the project to weaken the default warnings. > It works fine without the explicit -Werror=return-type on GCC 14. The compiler sees an explicit -Werror=return-type but it is not explicitely spelled out in the package spec files.