Module Name: src
Committed By: rillig
Date: Sun Sep 26 01:28:43 UTC 2021
Modified Files:
src/usr.bin/xlint/lint1: cgram.y
Log Message:
lint: fix Bison warnings
cgram.y:998.11-35: warning: type clash on default action: <y_sym> != <>
[-Wother]
No functional change.
To generate a diff of this commit:
cvs rdiff -u -r1.366 -r1.367 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.
Modified files:
Index: src/usr.bin/xlint/lint1/cgram.y
diff -u src/usr.bin/xlint/lint1/cgram.y:1.366 src/usr.bin/xlint/lint1/cgram.y:1.367
--- src/usr.bin/xlint/lint1/cgram.y:1.366 Fri Sep 17 21:06:04 2021
+++ src/usr.bin/xlint/lint1/cgram.y Sun Sep 26 01:28:43 2021
@@ -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 @@ struct_declaration: /* C99 6.7.2.1 */
$$ = NULL;
}
}
- | static_assert_declaration
+ | static_assert_declaration {
+ $$ = NULL;
+ }
| error T_SEMI {
symtyp = FVFT;
$$ = NULL;