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: fix Bison warnings
details: https://anonhg.NetBSD.org/src/rev/a3b44f38b442
branches: trunk
changeset: 1023776:a3b44f38b442
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Sep 26 01:28:43 2021 +0000
description:
lint: fix Bison warnings
cgram.y:998.11-35: warning: type clash on default action: <y_sym> != <>
[-Wother]
No functional change.
diffstat:
usr.bin/xlint/lint1/cgram.y | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 217275172c86 -r a3b44f38b442 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Sun Sep 26 01:16:07 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Sun Sep 26 01:28:43 2021 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.366 2021/09/17 21:06:04 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.367 2021/09/26 01:28:43 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.366 2021/09/17 21:06:04 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.367 2021/09/26 01:28:43 rillig Exp $");
#endif
#include <limits.h>
@@ -995,7 +995,9 @@
$$ = NULL;
}
}
- | static_assert_declaration
+ | static_assert_declaration {
+ $$ = NULL;
+ }
| error T_SEMI {
symtyp = FVFT;
$$ = NULL;
Home |
Main Index |
Thread Index |
Old Index