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 redundant '%prec' from gram...
details: https://anonhg.NetBSD.org/src/rev/e9a8cb9e4e09
branches: trunk
changeset: 953964:e9a8cb9e4e09
user: rillig <rillig%NetBSD.org@localhost>
date: Fri Mar 26 16:05:19 2021 +0000
description:
lint: remove redundant '%prec' from grammar for compound literals
No change to the resulting binary.
diffstat:
usr.bin/xlint/lint1/cgram.y | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 3c5eb29cd13e -r e9a8cb9e4e09 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Fri Mar 26 15:59:53 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Fri Mar 26 16:05:19 2021 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.200 2021/03/25 21:51:55 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.201 2021/03/26 16:05:19 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.200 2021/03/25 21:51:55 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.201 2021/03/26 16:05:19 rillig Exp $");
#endif
#include <limits.h>
@@ -1996,7 +1996,7 @@
| T_LPAREN type_name T_RPAREN term %prec T_UNARY {
$$ = cast($4, $2);
}
- | T_LPAREN type_name T_RPAREN %prec T_UNARY {
+ | T_LPAREN type_name T_RPAREN { /* C99 6.5.2.5 "Compound literals" */
sym_t *tmp = mktempsym($2);
begin_initialization(tmp);
cgram_declare(tmp, true, NULL);
Home |
Main Index |
Thread Index |
Old Index