]> git.eshelyaron.com Git - emacs.git/commitdiff
* composite.c (find_automatic_composition): Mark vars as initialized, with a FIXME.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 19 Mar 2011 01:02:49 +0000 (18:02 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 19 Mar 2011 01:02:49 +0000 (18:02 -0700)
src/ChangeLog
src/composite.c

index ca10b31305db46d6078ac913962be4145002e510..f856a24fbdd460ed0a1d47dbb0687ec40ddb559a 100644 (file)
@@ -5,6 +5,7 @@
        (composition_reseat_it): Remove unused locals.
        (find_automatic_composition, composition_adjust_point): Likewise.
        (composition_update_it): Mark var as initialized.
+       (find_automatic_composition): Mark vars as initialized, with a FIXME.
 
 2011-03-18  Paul Eggert  <eggert@cs.ucla.edu>
 
index ee2e843b72984126279859af84a8e6040c43c81f..bc5644a4612477bff62fe14e16827afebb889280 100644 (file)
@@ -1489,7 +1489,13 @@ find_automatic_composition (EMACS_INT pos, EMACS_INT limit, EMACS_INT *start, EM
   EMACS_INT head, tail, stop;
   /* Limit to check a composition after POS.  */
   EMACS_INT fore_check_limit;
-  struct position_record orig, cur, check, prev;
+  struct position_record orig, cur;
+
+  /* FIXME: It's not obvious whether these two variables need initialization.
+     If they do, please supply initial values.
+     If not, please remove this comment.  */
+  struct position_record check IF_LINT (= {0}), prev IF_LINT (= {0});
+
   Lisp_Object check_val, val, elt;
   int c;
   Lisp_Object window;