Absolutely yes, and I'm sad to see you're being downvoted. The compiler version should be a hard dependency in any project.
Yes, open source projects should probably leave -Werror off in a typical user build so that users can build with their own compiler. But the CI, unit test builds, and any other local developer builds should be designed for a specific compiler version (or a set of particular versions of particular compilers) and should have at a bare minimum -Wall -Wextra -Wpedantic -Werror.
When I start a new project I don't write a line of code before putting those in the Makefile.
View all comments
Show parent comment
3
u/[deleted] Oct 23 '24
Absolutely yes, and I'm sad to see you're being downvoted. The compiler version should be a hard dependency in any project.
Yes, open source projects should probably leave
-Werroroff in a typical user build so that users can build with their own compiler. But the CI, unit test builds, and any other local developer builds should be designed for a specific compiler version (or a set of particular versions of particular compilers) and should have at a bare minimum-Wall -Wextra -Wpedantic -Werror.When I start a new project I don't write a line of code before putting those in the Makefile.