Re:I got the J language working on OpenBSD
by initplus on Sunday September 12, 2021 @05:36PM
(#28505225)
Zero warnings is the kind of thing that should be enforced as a pre merge check rather than a build showstopper.
[ Parent
| on HN ]
Re:I got the J language working on OpenBSD
by cowsandmilk on Monday September 13, 2021 @05:56AM
(#28509482)
In the case of the team moving to a new compiler, what are you suggesting? We can’t merge in use of a newer compiler until there are zero warnings in all our products? Who “fixes” all those code bases? Who touches the pieces of code that were last touched 5 or 10 years ago?
Re:I got the J language working on OpenBSD
by mikepurvis on Monday September 13, 2021 @10:57AM
(#28512288)
Various solutions are possible, including the obvious one of just removing -Werror. But the point is that this decision should be made by the team that owns/maintains the code, not by some centralized devops group.
Re:I got the J language working on OpenBSD
by mikepurvis on Sunday September 12, 2021 @09:35PM
(#28506932)
Yeah, 100% agree. Or even better, for incremental improvement, have it enforce no new warnings.
But all of this requires adding complexity and branching to the system. It can be done and is worth doing, you just have to choose your battles.