3 ms·
Be advised that every new C project written by experienced developers begins with `-Wall -Wextra -Wpedantic -Werror`
by ddevault 6y ago
Be advised that every new C project written by experienced developers begins with `-Wall -Wextra -Wpedantic -Werror`
- account42 6y ago-Werror is a bad idea for open source projects or anything that will be compiled by people who do not know how to fix things when their shiny new compiler added a fancy warning. -Werror=... for specific warnings might be OK in some cases.
- ddevault 6y agoThey can just remove -Werror when compiling. It's useful enough to keep in place by default if you consider warnings bugs (and you ought to).
- saagarjha 6y agoSo would you agree that it might be a useful thing to use for local development, but not for code you want other people to compile?
- nly 6y agoThat still doesn't turn on many warnings. Clang has -Weverything for this.
- gnulinux 6y ago-Weverything contains contradictory errors. I think -Wmost is better but it's probably still very noisy.