Mercurial > emacs
changeset 24870:b0f6eab5deeb
(decode_coding_sjis_big5): Avoid compiler warning.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 18 Jun 1999 06:11:29 +0000 |
parents | 28e022c50e4f |
children | 45799f110d16 |
files | src/coding.c |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/coding.c Fri Jun 18 05:49:18 1999 +0000 +++ b/src/coding.c Fri Jun 18 06:11:29 1999 +0000 @@ -2315,7 +2315,10 @@ coding->produced_char++; } else if (c1 < 0x80) - DECODE_SJIS_BIG5_CHARACTER (charset_ascii, c1, /* dummy */ c2); + { + c2 = 0; /* avoid warning */ + DECODE_SJIS_BIG5_CHARACTER (charset_ascii, c1, /* dummy */ c2); + } else { if (sjis_p) @@ -2334,8 +2337,11 @@ } else if (c1 < 0xE0) /* SJIS -> JISX0201-Kana */ - DECODE_SJIS_BIG5_CHARACTER (charset_katakana_jisx0201, c1, - /* dummy */ c2); + { + c2 = 0; /* avoid warning */ + DECODE_SJIS_BIG5_CHARACTER (charset_katakana_jisx0201, c1, + /* dummy */ c2); + } else goto label_invalid_code_1; }