From 9be802636efdf9737227f59f80216b3cd1b2cd82 Mon Sep 17 00:00:00 2001 From: Takuji Tanaka Date: Tue, 29 Aug 2017 13:19:57 +0000 Subject: texk/makejvf: Suppress compiler warnings git-svn-id: svn://tug.org/texlive/trunk@45161 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/makejvf/uniblock.c | 4 ++-- Build/source/texk/makejvf/usrtable.c | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'Build/source/texk') diff --git a/Build/source/texk/makejvf/uniblock.c b/Build/source/texk/makejvf/uniblock.c index ef35d236d7e..faad3d1d886 100644 --- a/Build/source/texk/makejvf/uniblock.c +++ b/Build/source/texk/makejvf/uniblock.c @@ -344,13 +344,13 @@ int main() { usertable_charset[1].max=0xFFFB; for (ch=0x0;ch<0x10000;ch++) { - printf(" %05x %1d G:%2d C:%2d J:%2d K:%2d custom:%2d\n", ch, uniblock_iskanji, + printf(" %05lx %1d G:%2d C:%2d J:%2d K:%2d custom:%2d\n", ch, uniblock_iskanji, search_cjk_entry(ch,ENTRY_G), search_cjk_entry(ch,ENTRY_C), search_cjk_entry(ch,ENTRY_J), search_cjk_entry(ch,ENTRY_K), search_cjk_entry(ch,ENTRY_CUSTOM)); } - + return(0); } #endif diff --git a/Build/source/texk/makejvf/usrtable.c b/Build/source/texk/makejvf/usrtable.c index 1b9c070a499..54311eaa9b6 100644 --- a/Build/source/texk/makejvf/usrtable.c +++ b/Build/source/texk/makejvf/usrtable.c @@ -29,8 +29,8 @@ void get_usertable(char *name) exit(1); } for (l = 0; fgets(buf, BUF_SIZE, fp) != NULL; l++) { - if (endptr=strchr(buf, '%')) strcpy(endptr,"\n"); /* ignore after '%' */ - if (!strncmp(buf, "\n", 1)) continue; /* ignore empty line */ + if ((endptr=strchr(buf, '%')) != NULL) strcpy(endptr,"\n"); /* ignore after '%' */ + if (!strncmp(buf, "\n", 1)) continue; /* ignore empty line */ tok = strtok(buf, "\t"); if (!strcmp(tok, "REPLACE")) { if (usertable_replace_max >= MAX_TABLE) goto buferr; @@ -56,8 +56,8 @@ void get_usertable(char *name) } if ((!strcmp(tok, "+") && charset_mode) || !strcmp(tok, "CHARSET")) { charset_mode = 1; - while (tok=strtok(NULL, ",\t\n")) { - if (endptr=strstr(tok,"..")) { + while ((tok=strtok(NULL, ",\t\n")) != NULL) { + if ((endptr=strstr(tok,"..")) != NULL) { *endptr = '\0'; if (sscanf(tok, "%7s",str0) != 1) goto taberr; if (sscanf(endptr+2,"%7s",str1) != 1) goto taberr; @@ -102,7 +102,6 @@ buferr: #ifdef DEBUG int main() { int i; - long ch0,ch1; char name[]="test_user_table"; get_usertable(name); @@ -119,7 +118,8 @@ int main() { if (usertable_charset_max>0) { printf("CHARSET::\n"); for(i=0;i