summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-02-09 23:44:45 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-02-09 23:44:45 +0000
commitf60525bfdb7c9d99841f63bf523e09ad3bdcde01 (patch)
tree5e92af13638a9b29ddb28558322528f1abcd286b /Build
parentad324788e008423f7ac43c11598ceb9337c946c7 (diff)
texk/upmendex: Remove unused local variables
git-svn-id: svn://tug.org/texlive/trunk@39650 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/upmendex/ChangeLog5
-rw-r--r--Build/source/texk/upmendex/convert.c6
-rw-r--r--Build/source/texk/upmendex/fread.c2
-rw-r--r--Build/source/texk/upmendex/main.c1
-rw-r--r--Build/source/texk/upmendex/qsort.c4
5 files changed, 11 insertions, 7 deletions
diff --git a/Build/source/texk/upmendex/ChangeLog b/Build/source/texk/upmendex/ChangeLog
index 4b410b8d4ea..d72574323b8 100644
--- a/Build/source/texk/upmendex/ChangeLog
+++ b/Build/source/texk/upmendex/ChangeLog
@@ -1,3 +1,8 @@
+2016-02-09 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * convert.c, fread.c, main.c: Remove unused local variables.
+ * qsort.c: Avoid compiler warning in the case of Windows 64bit.
+
2016-01-31 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
* version 0.50 Beta version.
diff --git a/Build/source/texk/upmendex/convert.c b/Build/source/texk/upmendex/convert.c
index 49c535f1694..19e1e179772 100644
--- a/Build/source/texk/upmendex/convert.c
+++ b/Build/source/texk/upmendex/convert.c
@@ -30,7 +30,7 @@ UChar * u_xstrdup (const UChar *string)
/* initialize kana table */
void initkanatable(void)
{
- int i,cc;
+ int i;
akasatana=u_xstrdup(AKASATANA);
for (i=0;;i++) {
@@ -184,9 +184,9 @@ static int dcomp(const void *bf1, const void *bf2)
/* convert to capital-hiragana character */
int convert(UChar *buff1, UChar *buff2)
{
- int i=0,j=0,k,l;
+ int i=0,j=0,k;
char errbuff[4096],errbuff2[4096];
- int chr,wclen;
+ int wclen;
UChar buff3[3];
while(1) {
diff --git a/Build/source/texk/upmendex/fread.c b/Build/source/texk/upmendex/fread.c
index 22f50ef9eb8..75c1e01470b 100644
--- a/Build/source/texk/upmendex/fread.c
+++ b/Build/source/texk/upmendex/fread.c
@@ -16,7 +16,7 @@ int idxread(char *filename, int start)
{
int i,j,k,l,m,n,cc,indent,wflg,flg=0,bflg=0,nest,esc,quo,eflg=0,pacc,preject;
char buff[BUFSIZE],wbuff[BUFSIZE],estr[256],table[BUFSIZE];
- UChar utable[BUFSIZE],ubuff[BUFSIZE],*tmp1,*tmp2;
+ UChar utable[BUFSIZE],*tmp1,*tmp2;
FILE *fp;
pacc=acc;
diff --git a/Build/source/texk/upmendex/main.c b/Build/source/texk/upmendex/main.c
index 989c90d6ed2..6b2d689828b 100644
--- a/Build/source/texk/upmendex/main.c
+++ b/Build/source/texk/upmendex/main.c
@@ -25,7 +25,6 @@ int main(int argc, char **argv)
{
int i,j,cc=0,startpagenum=-1,ecount=0,chkopt=1;
const char *envbuff;
- char *p;
UVersionInfo icuVersion;
char icu_version[U_MAX_VERSION_STRING_LENGTH] = "";
diff --git a/Build/source/texk/upmendex/qsort.c b/Build/source/texk/upmendex/qsort.c
index df95890e68b..b95dc27b88c 100644
--- a/Build/source/texk/upmendex/qsort.c
+++ b/Build/source/texk/upmendex/qsort.c
@@ -118,8 +118,8 @@ qst(char *base, char *max)
register int ii;
register char c;
void *tmp;
- int lo;
- int hi;
+ size_t lo;
+ size_t hi;
lo = max - base; /* number of elements as chars */
do {