[Info-vax] [OT?] Should compiler warnings be treated as errors ?

Chris Townley news at cct-net.co.uk
Thu Sep 9 14:01:39 EDT 2021


On 09/09/2021 18:52, 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 ?
> 
> Simon.
> 

A lot depends on the environment/architecture.

Compiling on VMS in the system I inherited, there were numerous warnings 
that could not be suppressed. I did spend a _lot_ of time removing 
others - no code I wrote had direct warnings.

Likewise in various other environments.

Otherwise in principle I would agree with you


-- 
Chris



More information about the Info-vax mailing list