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 empty init_decl {} is valid



details:   https://anonhg.NetBSD.org/src/rev/3448e5904fe1
branches:  trunk
changeset: 326020:3448e5904fe1
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 16 00:43:43 2014 +0000

description:
empty init_decl {} is valid

diffstat:

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

diffs (27 lines):

diff -r d4f96d2ed1c9 -r 3448e5904fe1 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Thu Jan 16 00:32:48 2014 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Thu Jan 16 00:43:43 2014 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.55 2013/04/19 17:43:05 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.56 2014/01/16 00:43:43 christos 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.55 2013/04/19 17:43:05 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.56 2014/01/16 00:43:43 christos Exp $");
 #endif
 
 #include <stdlib.h>
@@ -1171,6 +1171,7 @@
                mkinit($1);
          }
        | init_by_name init_expr        %prec T_COMMA
+       | init_lbrace init_rbrace
        | init_lbrace init_expr_list init_rbrace
        | init_lbrace init_expr_list T_COMMA init_rbrace
        | error



Home | Main Index | Thread Index | Old Index