3 ms·
> I regularly have to work with other people's C++ where they don't have -Wall -Werror. I think you inadvertently showed why this sort of thing: it's simply ba
by motorest 2y ago
> I regularly have to work with other people's C++ where they don't have -Wall -Werror.
I think you inadvertently showed why this sort of thing: it's simply bad practice and a notorious source of problems. With -Wall -Werror you can turn any optional nit remark into a blocked pipeline requiring urgent maintenance. I know it because I had to work long hours in a C++ project that suddenly failed to build because a moron upstream passed -Wall -Werror as transitive build flags. We're talking about production pipelines being blocked due to things like function arguments being declared but not used.
Sometimes I wonder if these discussions on the virtues of blindly leaning on the compiler are based on solid ground or are instead opinionated junior devs passing off their skinner box as some kind of operational excellence.