summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-11-23 22:57:37 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-11-23 22:57:37 +0000
commit3cc0a0e0e011bd0a88878c80acacdb41c4cad186 (patch)
tree160d7a923e6dc3004479079e5252e36d60305bbd /usr.bin
parent4b138a3c66fd14c4d73886b9450be37e21872296 (diff)
Deal with empty array initializers (a gcc-ism), but warn.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/xlint/lint1/cgram.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/xlint/lint1/cgram.y b/usr.bin/xlint/lint1/cgram.y
index 7fe0268d8e0..f86aeeccb4a 100644
--- a/usr.bin/xlint/lint1/cgram.y
+++ b/usr.bin/xlint/lint1/cgram.y
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: cgram.y,v 1.9 2005/11/23 22:25:36 cloder Exp $ */
+/* $OpenBSD: cgram.y,v 1.10 2005/11/23 22:57:36 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.9 2005/11/23 22:25:36 cloder Exp $";
+static char rcsid[] = "$OpenBSD: cgram.y,v 1.10 2005/11/23 22:57:36 cloder Exp $";
#endif
#include <stdlib.h>
@@ -1101,6 +1101,7 @@ init_expr:
}
| init_lbrace init_expr_list init_rbrace
| init_lbrace init_expr_list T_COMMA init_rbrace
+ | init_lbrace init_rbrace
| error
;