* coding.c (decode_coding_emacs_mule): Mark variables that gcc
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Mar 2011 07:34:38 +0000 (23:34 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Mar 2011 07:34:38 +0000 (23:34 -0800)
-Wuninitialized does not deduce are never used uninitialized.

src/ChangeLog
src/coding.c

index fdc9fb1..07a7c17 100644 (file)
@@ -54,8 +54,8 @@
        Now static, since they're not used elsewhere.
        (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
        (decode_coding_object, encode_coding_object, detect_coding_system):
-       Mark variables that gcc -Wuninitialized does not deduce are never
-       used uninitialized.
+       (decode_coding_emacs_mule): Mark variables that gcc
+       -Wuninitialized does not deduce are never used uninitialized.
        (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
        (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
        (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
index 3df34ce..096268d 100644 (file)
@@ -2365,7 +2365,7 @@ decode_coding_emacs_mule (struct coding_system *coding)
 
   while (1)
     {
-      int c, id;
+      int c, id IF_LINT (= 0);
 
       src_base = src;
       consumed_chars_base = consumed_chars;
@@ -2410,7 +2410,7 @@ decode_coding_emacs_mule (struct coding_system *coding)
        }
       else
        {
-         int nchars, nbytes;
+         int nchars IF_LINT (= 0), nbytes IF_LINT (= 0);
          /* emacs_mule_char can load a charset map from a file, which
             allocates a large structure and might cause buffer text
             to be relocated as result.  Thus, we need to remember the