From: Paul Eggert Date: Tue, 8 Mar 2011 07:34:38 +0000 (-0800) Subject: * coding.c (decode_coding_emacs_mule): Mark variables that gcc X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~605^2^2~56 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ee05f96119932f5e4f33b59e1a2f4abdd9c0a34a;p=emacs.git * coding.c (decode_coding_emacs_mule): Mark variables that gcc -Wuninitialized does not deduce are never used uninitialized. --- diff --git a/src/ChangeLog b/src/ChangeLog index fdc9fb126ed..07a7c1736ce 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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): diff --git a/src/coding.c b/src/coding.c index 3df34cea173..096268d1a72 100644 --- a/src/coding.c +++ b/src/coding.c @@ -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