]> git.eshelyaron.com Git - emacs.git/commitdiff
* 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 fdc9fb126ed965410015f6a87e71e4c8fa6787cc..07a7c1736ce81cdd8b00acb300e7e1719fbf2b53 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 3df34cea173836f60c1a3958c966f9828b2f7e74..096268d1a729a730e89e27a61ff3fc3fdd329e7d 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