Module Name:    src
Committed By:   roy
Date:           Mon Mar 30 02:08:11 UTC 2020

Modified Files:
        src/lib/libterminfo: compile.c

Log Message:
terminfo: satisfy gcc bitching


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libterminfo/compile.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libterminfo/compile.c
diff -u src/lib/libterminfo/compile.c:1.23 src/lib/libterminfo/compile.c:1.24
--- src/lib/libterminfo/compile.c:1.23	Mon Mar 30 00:09:06 2020
+++ src/lib/libterminfo/compile.c	Mon Mar 30 02:08:11 2020
@@ -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 @@ _ti_promote(TIC *tic)
 	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;

Reply via email to