aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-03-07 16:36:30 -0800
committerPaul Eggert2011-03-07 16:36:30 -0800
commit89ef49dfdacaf2cca55246c902591b69618a287b (patch)
treec21d571186697a6063393d66496ef014317da424 /src
parent726929c43aaf671dcbac9b45f9da5b7c9168f3ef (diff)
downloademacs-89ef49dfdacaf2cca55246c902591b69618a287b.tar.gz
emacs-89ef49dfdacaf2cca55246c902591b69618a287b.zip
* charset.c (load_charset_map): Mark variables that gcc -Wuninitialized
does not deduce are never used uninitialized.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/charset.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 39f806283f3..c108bb38bea 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -34,6 +34,8 @@
34 Include <limits.h>. 34 Include <limits.h>.
35 (Fsort_charsets): Redo min/max calculation to shorten the code a bit 35 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
36 and to avoid gcc -Wuninitialized warning. 36 and to avoid gcc -Wuninitialized warning.
37 (load_charset_map): Mark variables that gcc -Wuninitialized
38 does not deduce are never used uninitialized.
37 39
382011-03-06 Chong Yidong <cyd@stupidchicken.com> 402011-03-06 Chong Yidong <cyd@stupidchicken.com>
39 41
diff --git a/src/charset.c b/src/charset.c
index 0ce548d5a18..e46dadab93a 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -251,7 +251,7 @@ struct charset_map_entries
251static void 251static void
252load_charset_map (struct charset *charset, struct charset_map_entries *entries, int n_entries, int control_flag) 252load_charset_map (struct charset *charset, struct charset_map_entries *entries, int n_entries, int control_flag)
253{ 253{
254 Lisp_Object vec, table; 254 Lisp_Object vec IF_LINT (= Qnil), table IF_LINT (= Qnil);
255 unsigned max_code = CHARSET_MAX_CODE (charset); 255 unsigned max_code = CHARSET_MAX_CODE (charset);
256 int ascii_compatible_p = charset->ascii_compatible_p; 256 int ascii_compatible_p = charset->ascii_compatible_p;
257 int min_char, max_char, nonascii_min_char; 257 int min_char, max_char, nonascii_min_char;