summaryrefslogtreecommitdiff
path: root/usr.bin/xlint/lint1
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2006-04-21 23:17:11 +0000
committerChad Loder <cloder@cvs.openbsd.org>2006-04-21 23:17:11 +0000
commita58ae6c4545dff70e7d21f25585f9ed4bad78349 (patch)
tree2f1912d21c00ef2bacb6dd5620921f60addaff99 /usr.bin/xlint/lint1
parent66a3e6581c21c7bb0f662336083e44af48f0505b (diff)
Kill warning 54, trailing comma in enum, because this is allowed in C99.
Diffstat (limited to 'usr.bin/xlint/lint1')
-rw-r--r--usr.bin/xlint/lint1/cgram.y11
1 files changed, 2 insertions, 9 deletions
diff --git a/usr.bin/xlint/lint1/cgram.y b/usr.bin/xlint/lint1/cgram.y
index 5587b537cc7..d0123ebb9e3 100644
--- a/usr.bin/xlint/lint1/cgram.y
+++ b/usr.bin/xlint/lint1/cgram.y
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: cgram.y,v 1.18 2006/04/20 16:29:48 cloder Exp $ */
+/* $OpenBSD: cgram.y,v 1.19 2006/04/21 23:17:10 cloder Exp $ */
/* $NetBSD: cgram.y,v 1.8 1995/10/02 17:31:35 jpo Exp $ */
/*
@@ -34,7 +34,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: cgram.y,v 1.18 2006/04/20 16:29:48 cloder Exp $";
+static char rcsid[] = "$OpenBSD: cgram.y,v 1.19 2006/04/21 23:17:10 cloder Exp $";
#endif
#include <stdlib.h>
@@ -742,13 +742,6 @@ enums_with_opt_comma:
$$ = $1;
}
| enums T_COMMA {
- if (sflag) {
- /* trailing "," prohibited in enum declaration */
- error(54);
- } else {
- /* trailing "," prohibited in enum declaration */
- warning(54);
- }
$$ = $1;
}
;