From: Kenichi Handa Date: Fri, 18 Jun 1999 06:11:29 +0000 (+0000) Subject: (decode_coding_sjis_big5): Avoid compiler warning. X-Git-Tag: emacs-20.4~79 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5e34de1585de456a52415b023fcd786553bf297d;p=emacs.git (decode_coding_sjis_big5): Avoid compiler warning. --- diff --git a/src/coding.c b/src/coding.c index 832958de492..f5c53ba8899 100644 --- a/src/coding.c +++ b/src/coding.c @@ -2315,7 +2315,10 @@ decode_coding_sjis_big5 (coding, source, destination, 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 @@ decode_coding_sjis_big5 (coding, source, destination, } 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; }