diff options
| author | Paul Eggert | 2011-03-07 16:36:30 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-03-07 16:36:30 -0800 |
| commit | 89ef49dfdacaf2cca55246c902591b69618a287b (patch) | |
| tree | c21d571186697a6063393d66496ef014317da424 /src | |
| parent | 726929c43aaf671dcbac9b45f9da5b7c9168f3ef (diff) | |
| download | emacs-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/ChangeLog | 2 | ||||
| -rw-r--r-- | src/charset.c | 2 |
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 | ||
| 38 | 2011-03-06 Chong Yidong <cyd@stupidchicken.com> | 40 | 2011-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 | |||
| 251 | static void | 251 | static void |
| 252 | load_charset_map (struct charset *charset, struct charset_map_entries *entries, int n_entries, int control_flag) | 252 | load_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; |