Re:I got the J language working on OpenBSD
by MichaelBurge on Sunday September 12, 2021 @04:21PM
(#28504530)
You are speaking way too conceptually and not looking at the actual warnings that compilers report.
Some compilers will warn about:
while (true) { ... }
having a constant condition. The fix is to write: for (;;) { ... }
to nobody's benefit.I've used languages that warn if you use snake_case instead of camelCase, because it violates their preferred naming convention. Or if you accidentally use a tab somewhere, it'll warn about a mix of tabs and spaces.
None of these matter for correctness, yet you're advocating to break the build for correctness.
Re:I got the J language working on OpenBSD
by citrin_ru on Monday September 13, 2021 @07:49AM
(#28510286)
> The fix is to write:
> for (;;) { ... }
> to nobody's benefit.
Idiomatic constructions benefit whoever would read the code (along with choosing and following to a style guide).
Re:I got the J language working on OpenBSD
by brynet on Sunday September 12, 2021 @03:51PM
(#28504292)
OpenBSD's ports tree gets compiled using multiple compilers (clang/gcc) and compiler versions (base 4.2.1, ports gcc8/11), across many different architectures. In most cases when an upstream has added -Werror to a Makefile, they have not considered this. It's good for testing, but not for reliably compiling software.
Since they do want the OS to be practical and usable, though, your argument also holds true, and seems to take precedence here. Just kind of surprised they'd make a policy of explicitly patching out upstream's Werror, since it implies it's "supposed" to work with no errors.