aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-03-07 23:34:38 -0800
committerPaul Eggert2011-03-07 23:34:38 -0800
commitee05f96119932f5e4f33b59e1a2f4abdd9c0a34a (patch)
tree3039f4872467f78edd4dbae6a867c4d9d96bb193 /src
parent5f58e762f919864376efe785253006590a1e4dc5 (diff)
downloademacs-ee05f96119932f5e4f33b59e1a2f4abdd9c0a34a.tar.gz
emacs-ee05f96119932f5e4f33b59e1a2f4abdd9c0a34a.zip
* coding.c (decode_coding_emacs_mule): Mark variables that gcc
-Wuninitialized does not deduce are never used uninitialized.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/coding.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index fdc9fb126ed..07a7c1736ce 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -54,8 +54,8 @@
54 Now static, since they're not used elsewhere. 54 Now static, since they're not used elsewhere.
55 (decode_coding_iso_2022): Add "default: abort ();" as a safety check. 55 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
56 (decode_coding_object, encode_coding_object, detect_coding_system): 56 (decode_coding_object, encode_coding_object, detect_coding_system):
57 Mark variables that gcc -Wuninitialized does not deduce are never 57 (decode_coding_emacs_mule): Mark variables that gcc
58 used uninitialized. 58 -Wuninitialized does not deduce are never used uninitialized.
59 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT): 59 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
60 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P): 60 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
61 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER): 61 (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)
2365 2365
2366 while (1) 2366 while (1)
2367 { 2367 {
2368 int c, id; 2368 int c, id IF_LINT (= 0);
2369 2369
2370 src_base = src; 2370 src_base = src;
2371 consumed_chars_base = consumed_chars; 2371 consumed_chars_base = consumed_chars;
@@ -2410,7 +2410,7 @@ decode_coding_emacs_mule (struct coding_system *coding)
2410 } 2410 }
2411 else 2411 else
2412 { 2412 {
2413 int nchars, nbytes; 2413 int nchars IF_LINT (= 0), nbytes IF_LINT (= 0);
2414 /* emacs_mule_char can load a charset map from a file, which 2414 /* emacs_mule_char can load a charset map from a file, which
2415 allocates a large structure and might cause buffer text 2415 allocates a large structure and might cause buffer text
2416 to be relocated as result. Thus, we need to remember the 2416 to be relocated as result. Thus, we need to remember the