]> git.eshelyaron.com Git - emacs.git/commitdiff
* charset.c (load_charset_map): Mark variables that gcc -Wuninitialized
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Mar 2011 00:36:30 +0000 (16:36 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Mar 2011 00:36:30 +0000 (16:36 -0800)
does not deduce are never used uninitialized.

src/ChangeLog
src/charset.c

index 39f806283f336d9b9001078d8777f724c7d304fa..c108bb38bea8ec24a16cc3ba2a45b91c16dfcdfe 100644 (file)
@@ -34,6 +34,8 @@
        Include <limits.h>.
        (Fsort_charsets): Redo min/max calculation to shorten the code a bit
        and to avoid gcc -Wuninitialized warning.
+       (load_charset_map): Mark variables that gcc -Wuninitialized
+       does not deduce are never used uninitialized.
 
 2011-03-06  Chong Yidong  <cyd@stupidchicken.com>
 
index 0ce548d5a18baca89b401250f26221df31f468b1..e46dadab93ab9615d87b397c8d6850e2ba027806 100644 (file)
@@ -251,7 +251,7 @@ struct charset_map_entries
 static void
 load_charset_map (struct charset *charset, struct charset_map_entries *entries, int n_entries, int control_flag)
 {
-  Lisp_Object vec, table;
+  Lisp_Object vec IF_LINT (= Qnil), table IF_LINT (= Qnil);
   unsigned max_code = CHARSET_MAX_CODE (charset);
   int ascii_compatible_p = charset->ascii_compatible_p;
   int min_char, max_char, nonascii_min_char;