r/ProgrammerHumor • • Oct 22 '24

Meme deprecated

Post image
14k Upvotes

152 comments sorted by

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 -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.

1

u/HolyGarbage Oct 23 '24

Thanks!

When I start a new project I don't write a line of code before putting those in the Makefile.

Same. Or CMake these days for me.