Module Name: src Committed By: rillig Date: Thu Jul 15 17:20:58 UTC 2021
Modified Files: src/tests/usr.bin/xlint/lint1: expr_precedence.c expr_precedence.exp src/usr.bin/xlint/lint1: cgram.y Log Message: lint: in the grammar, replace %prec with explicit rules This way, in the arguments of __attribute__, where only constant expressions are expected, a '=' leads to a syntax error. Previously, this was not detected. No noticeable change in practice since these cases are already handled by the compilers. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/expr_precedence.c \ src/tests/usr.bin/xlint/lint1/expr_precedence.exp cvs rdiff -u -r1.324 -r1.325 src/usr.bin/xlint/lint1/cgram.y Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.