Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/common lint: fix lint warning about initializi...



details:   https://anonhg.NetBSD.org/src/rev/b1d93c0535c1
branches:  trunk
changeset: 1023164:b1d93c0535c1
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Aug 28 13:02:25 2021 +0000

description:
lint: fix lint warning about initializing with negative number

No functional change.

diffstat:

 usr.bin/xlint/common/inittyp.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (43 lines):

diff -r ff334ffcf0f9 -r b1d93c0535c1 usr.bin/xlint/common/inittyp.c
--- a/usr.bin/xlint/common/inittyp.c    Sat Aug 28 12:59:25 2021 +0000
+++ b/usr.bin/xlint/common/inittyp.c    Sat Aug 28 13:02:25 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inittyp.c,v 1.25 2021/08/22 14:50:06 rillig Exp $      */
+/*     $NetBSD: inittyp.c,v 1.26 2021/08/28 13:02:25 rillig Exp $      */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: inittyp.c,v 1.25 2021/08/22 14:50:06 rillig Exp $");
+__RCSID("$NetBSD: inittyp.c,v 1.26 2021/08/28 13:02:25 rillig Exp $");
 #endif
 
 #include <limits.h>
@@ -122,19 +122,19 @@
                typeinfo(LCOMPLEX, LCOMPLEX, LCOMPLEX,
                    LDOUBLE_SIZE * 2, 80 * 2,
                    0, 0, 1, 1, 1, 1, "long double _Complex"),
-               typeinfo(VOID, VOID, VOID, -1, -1,
+               typeinfo(VOID, VOID, VOID, 0, 0,
                    0, 0, 0, 0, 0, 0, "void"),
-               typeinfo(STRUCT, STRUCT, STRUCT, -1, -1,
+               typeinfo(STRUCT, STRUCT, STRUCT, 0, 0,
                    0, 0, 0, 0, 0, 0, "struct"),
-               typeinfo(UNION, UNION, UNION, -1, -1,
+               typeinfo(UNION, UNION, UNION, 0, 0,
                    0, 0, 0, 0, 0, 0, "union"),
                typeinfo(ENUM, ENUM, ENUM, ENUM_SIZE, 24,
                    1, 0, 0, 1, 1, 0, "enum"),
                typeinfo(PTR, PTR, PTR, PTR_SIZE, 32,
                    0, 1, 0, 0, 1, 0, "pointer"),
-               typeinfo(ARRAY, ARRAY, ARRAY, -1, -1,
+               typeinfo(ARRAY, ARRAY, ARRAY, 0, 0,
                    0, 0, 0, 0, 0, 0, "array"),
-               typeinfo(FUNC, FUNC, FUNC, -1, -1,
+               typeinfo(FUNC, FUNC, FUNC, 0, 0,
                    0, 0, 0, 0, 0, 0, "function"),
 #undef typeinfo
        };



Home | Main Index | Thread Index | Old Index