* xfaces.c (Fx_list_fonts): Mark variable that gcc -Wuninitialized
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Mar 2011 06:25:19 +0000 (22:25 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Mar 2011 06:25:19 +0000 (22:25 -0800)
does not deduce is never used uninitialized.

src/ChangeLog
src/xfaces.c

index fb266a7..4478238 100644 (file)
@@ -4,6 +4,8 @@
        or move locals to avoid shadowing.
        (tty_defined_color, merge_face_heights): Now static.
        (free_realized_faces_for_fontset): Remove; not used.
+       (Fx_list_fonts): Mark variable that gcc -Wuninitialized
+       does not deduce is never used uninitialized.
 
        * terminal.c (store_terminal_param): Now static.
 
index b49675a..ded871d 100644 (file)
@@ -1720,7 +1720,7 @@ the WIDTH times as wide as FACE on FRAME.  */)
   (Lisp_Object pattern, Lisp_Object face, Lisp_Object frame, Lisp_Object maximum, Lisp_Object width)
 {
   struct frame *f;
-  int size, avgwidth;
+  int size, avgwidth IF_LINT (= 0);
 
   check_x ();
   CHECK_STRING (pattern);