pkgsrc-Changes archive

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

CVS commit: pkgsrc/inputmethod/ja-freewnn-lib



Module Name:    pkgsrc
Committed By:   rillig
Date:           Wed Mar 25 07:13:52 UTC 2020

Modified Files:
        pkgsrc/inputmethod/ja-freewnn-lib: Makefile.common

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


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/inputmethod/ja-freewnn-lib/Makefile.common

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

Modified files:

Index: pkgsrc/inputmethod/ja-freewnn-lib/Makefile.common
diff -u pkgsrc/inputmethod/ja-freewnn-lib/Makefile.common:1.24 pkgsrc/inputmethod/ja-freewnn-lib/Makefile.common:1.25
--- pkgsrc/inputmethod/ja-freewnn-lib/Makefile.common:1.24      Sun Jan 26 17:31:25 2020
+++ pkgsrc/inputmethod/ja-freewnn-lib/Makefile.common   Wed Mar 25 07:13:52 2020
@@ -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_CLASSES+=              imdictdir
 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