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.
This commit is contained in:
parent
941875ba2d
commit
d37415b4e9
|
@ -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 @@ initializer: /* C99 6.7.8 "Initialization" */
|
|||
| 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
|
||||
;
|
||||
|
||||
|
|
Loading…
Reference in New Issue