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 stray semicolon from gramma...



details:   https://anonhg.NetBSD.org/src/rev/e2df41cc1e30
branches:  trunk
changeset: 961668:e2df41cc1e30
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Apr 14 22:08:28 2021 +0000

description:
lint: remove stray semicolon from grammar, make empty rule visible

No functional change.

diffstat:

 usr.bin/xlint/lint1/cgram.y |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r cf5276e612ab -r e2df41cc1e30 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Wed Apr 14 22:06:38 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Wed Apr 14 22:08:28 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.217 2021/04/14 21:20:21 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.218 2021/04/14 22:08:28 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.217 2021/04/14 21:20:21 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.218 2021/04/14 22:08:28 rillig Exp $");
 #endif
 
 #include <limits.h>
@@ -1133,7 +1133,8 @@
        ;
 
 opt_type_qualifier_list:
-       | type_qualifier_list;
+         /* empty */
+       | type_qualifier_list
        ;
 
 array_size:



Home | Main Index | Thread Index | Old Index