Source-Changes-HG archive

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

[src/trunk]: src/lib/libterminfo terminfo: satisfy gcc bitching



details:   https://anonhg.NetBSD.org/src/rev/e297250b5fda
branches:  trunk
changeset: 746379:e297250b5fda
user:      roy <roy%NetBSD.org@localhost>
date:      Mon Mar 30 02:08:11 2020 +0000

description:
terminfo: satisfy gcc bitching

diffstat:

 lib/libterminfo/compile.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r a2b90cacfb99 -r e297250b5fda lib/libterminfo/compile.c
--- a/lib/libterminfo/compile.c Mon Mar 30 00:22:18 2020 +0000
+++ b/lib/libterminfo/compile.c Mon Mar 30 02:08:11 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compile.c,v 1.23 2020/03/30 00:09:06 roy Exp $ */
+/* $NetBSD: compile.c,v 1.24 2020/03/30 02:08:11 roy Exp $ */
 
 /*
  * Copyright (c) 2009, 2010, 2011, 2020 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: compile.c,v 1.23 2020/03/30 00:09:06 roy Exp $");
+__RCSID("$NetBSD: compile.c,v 1.24 2020/03/30 02:08:11 roy Exp $");
 
 #if !HAVE_NBTOOL_CONFIG_H || HAVE_SYS_ENDIAN_H
 #include <sys/endian.h>
@@ -132,6 +132,8 @@
        tic->extras.entries = tic->extras.buflen = tic->extras.bufpos = 0;
        for (n = entries; n > 0; n--) {
                num = _ti_decode_16(&cap);
+               flag = 0; /* satisfy gcc, won't be used for non flag types */
+               str = NULL; /* satisfy gcc, won't be used as strl is 0 */
                strl = 0;
                code = cap;
                cap += num;



Home | Main Index | Thread Index | Old Index