Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint1 lint: remove unnecessary '%prec T_COMMA'...
details: https://anonhg.NetBSD.org/src/rev/cc58875235e4
branches: trunk
changeset: 960519:cc58875235e4
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Mar 20 11:33:50 2021 +0000
description:
lint: remove unnecessary '%prec T_COMMA' from grammar
My previous commit message was wrong in saying that the '%prec' was
necessary. It is not necessary.
Most probably I misspelled the name of the grammar rule as opt_comma
instead of comma_opt, which would lead to the same number of conflicts
in the grammar plus a warning, but no build failure.
diffstat:
usr.bin/xlint/lint1/cgram.y | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 459999a96a13 -r cc58875235e4 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Sat Mar 20 11:24:49 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Sat Mar 20 11:33:50 2021 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.181 2021/03/20 11:24:49 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.182 2021/03/20 11:33:50 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.y,v 1.181 2021/03/20 11:24:49 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.182 2021/03/20 11:33:50 rillig Exp $");
#endif
#include <limits.h>
@@ -1332,7 +1332,7 @@
| init_lbrace init_rbrace {
/* XXX: Empty braces are not covered by C99 6.7.8. */
}
- | init_lbrace initializer_list %prec T_COMMA comma_opt init_rbrace
+ | init_lbrace initializer_list comma_opt init_rbrace
| error
;
Home |
Main Index |
Thread Index |
Old Index