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 change initialization from non const of ...



details:   https://anonhg.NetBSD.org/src/rev/febebb5f7544
branches:  trunk
changeset: 747802:febebb5f7544
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Oct 02 18:17:16 2009 +0000

description:
change initialization from non const of regular variables to c99 instead of
gnu since c99 now has it.

diffstat:

 usr.bin/xlint/lint1/init.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r cb9aa462239d -r febebb5f7544 usr.bin/xlint/lint1/init.c
--- a/usr.bin/xlint/lint1/init.c        Fri Oct 02 18:03:19 2009 +0000
+++ b/usr.bin/xlint/lint1/init.c        Fri Oct 02 18:17:16 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init.c,v 1.23 2008/04/26 16:14:23 christos Exp $       */
+/*     $NetBSD: init.c,v 1.24 2009/10/02 18:17:16 christos Exp $       */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: init.c,v 1.23 2008/04/26 16:14:23 christos Exp $");
+__RCSID("$NetBSD: init.c,v 1.24 2009/10/02 18:17:16 christos Exp $");
 #endif
 
 #include <stdlib.h>
@@ -587,7 +587,7 @@
                if (conaddr(tn, &sym, &offs) == -1) {
                        if (sc == AUTO || sc == REG) {
                                /* non-constant initializer */
-                               (void)gnuism(177);
+                               (void)c99ism(177);
                        } else {
                                /* non-constant initializer */
                                error(177);



Home | Main Index | Thread Index | Old Index