[Info-vax] [OT?] Should compiler warnings be treated as errors ?
Arne Vajhøj
arne at vajhoej.dk
Thu Sep 9 14:23:58 EDT 2021
On 9/9/2021 1:52 PM, Simon Clubley wrote:
> Interesting article in The Register:
>
> https://www.theregister.com/2021/09/08/compromise_linux_kernel_compiler_warnings/
>
> Linus has modified the Linux build procedures to turn compiler warnings
> into errors. I strongly agree with him and it's the same flag I use on
> my own code.
>
> However, some other people do not agree with him. Given how important
> the Linux kernel has become, I am surprised by that. There would be
> some initial cleanup pain, but IMHO, it's a flag that should have
> been enabled long ago and you never know if that cleanup will find
> some issues in the existing code.
>
> What do you think ? Should compiler warnings be treated as errors ?
A team should have a "warnings not acceptable" policy.
A team should also have sufficient discipline so that the policy
is enough and -Werror is not needed.
Arne
More information about the Info-vax
mailing list