Follow-up Comment #5, bug #65474 (group groff):
I agree with Paul that -ww is not intended as a style check. But I further
contend that this is not subpar style.
[comment #3 comment #3:]
> The translator is not happy about how the instructions are
> written, they are not informative enough for an unambiguous
> processing.
There is nothing ambiguous about the code in Paul's original example, either
to a human reader who understands basic if/then/else syntax, or to a machine
parser (theoretically, and seemingly in practice, except that something is
confusing groff's parser into emitting a spurious warning). Braces are not
required for this construction in C.
#include <stdio.h>
main() {
if (1 == 2)
puts("Weird");
else if (2 < 1)
puts("Also weird");
else puts("Normal");
}
When "if" statements are nested without braces, there can be ambiguity about
which one an "else" applies to. But there is none here.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65474>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/