pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/inputmethod/ja-freewnn-lib inputmethod/ja-freewnn-lib:...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/391b0ad20790
branches:  trunk
changeset: 426032:391b0ad20790
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Mar 25 07:13:52 2020 +0000

description:
inputmethod/ja-freewnn-lib: fix "array subscript has type 'char'"

diffstat:

 inputmethod/ja-freewnn-lib/Makefile.common |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r cf1b35f0c5e5 -r 391b0ad20790 inputmethod/ja-freewnn-lib/Makefile.common
--- a/inputmethod/ja-freewnn-lib/Makefile.common        Wed Mar 25 06:48:21 2020 +0000
+++ b/inputmethod/ja-freewnn-lib/Makefile.common        Wed Mar 25 07:13:52 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.24 2020/01/26 17:31:25 rillig Exp $
+# $NetBSD: Makefile.common,v 1.25 2020/03/25 07:13:52 rillig Exp $
 # used by inputmethod/ja-freewnn-server/Makefile
 # used by inputmethod/ja-freewnn-lib/Makefile
 
@@ -30,3 +30,16 @@
 SUBST_STAGE.imdictdir= post-extract
 SUBST_SED.imdictdir=   -e 's|@LIBDIR/@LANG/dic|${WNNDICTDIR}/@LANG|'
 SUBST_FILES.imdictdir= Wnn/jd/jserverrc
+
+# Fix GCC warnings:
+# rk_main.c:1441:41: error: array subscript has type 'char'
+# rk_main.c:1453:24: error: array subscript has type 'char'
+# rk_main.c:1454:26: error: array subscript has type 'char'
+# rk_main.c:1505:36: error: array subscript has type 'char'
+#
+# The variable ebf_sw should really be a boolean, not an int.
+#
+SUBST_CLASSES+=                char
+SUBST_STAGE.char=      pre-configure
+SUBST_FILES.char=      Wnn/romkan/rk_main.c
+SUBST_SED.char=                -e 's,char ebf_sw = 0,int ebf_sw = 0,'



Home | Main Index | Thread Index | Old Index