]> git.eshelyaron.com Git - emacs.git/commitdiff
(decode_coding_sjis_big5): Avoid compiler warning.
authorKenichi Handa <handa@m17n.org>
Fri, 18 Jun 1999 06:11:29 +0000 (06:11 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 18 Jun 1999 06:11:29 +0000 (06:11 +0000)
src/coding.c

index 832958de49296bfe55debce2f89cc6ad2e67cd10..f5c53ba8899958be0dc382f6e9096b7bf54f1748 100644 (file)
@@ -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;
            }