]> git.eshelyaron.com Git - emacs.git/commitdiff
Pacify GCC when configuring with --enable-gcc-warnings.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 21 Feb 2014 07:42:42 +0000 (23:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 21 Feb 2014 07:42:42 +0000 (23:42 -0800)
* xdisp.c (move_it_in_display_line_to) [lint]:
Initialize recently-added local.

src/ChangeLog
src/xdisp.c

index 05fccace7713b58d3898ec33b35a34379a2f9c66..ae35ff6cce20dd3edb96aceb69967879943e070e 100644 (file)
@@ -1,3 +1,9 @@
+2014-02-21  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Pacify GCC when configuring with --enable-gcc-warnings.
+       * xdisp.c (move_it_in_display_line_to) [lint]:
+       Initialize recently-added local.
+
 2014-02-21  Daniel Colascione  <dancol@dancol.org>
 
        * dbusbind.c: Rename dbus-init-bus to dbus-init-bus-1.
index 840ff1288e500f414941f7c61fbea2b0c728ddb5..c35a64d077413f939c680b26309df1f2c518dee1 100644 (file)
@@ -8313,7 +8313,7 @@ move_it_in_display_line_to (struct it *it,
   void *ppos_data = NULL;
   int may_wrap = 0;
   enum it_method prev_method = it->method;
-  ptrdiff_t closest_pos, prev_pos = IT_CHARPOS (*it);
+  ptrdiff_t closest_pos IF_LINT (= 0), prev_pos = IT_CHARPOS (*it);
   int saw_smaller_pos = prev_pos < to_charpos;
 
   /* Don't produce glyphs in produce_glyphs.  */