emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r116500: Pacify GCC when configuring with --enable-g


From: Paul Eggert
Subject: [Emacs-diffs] trunk r116500: Pacify GCC when configuring with --enable-gcc-warnings.
Date: Fri, 21 Feb 2014 07:43:00 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 116500
revision-id: address@hidden
parent: address@hidden
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Thu 2014-02-20 23:42:42 -0800
message:
  Pacify GCC when configuring with --enable-gcc-warnings.
  
  * xdisp.c (move_it_in_display_line_to) [lint]:
  Initialize recently-added local.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/xdisp.c                    xdisp.c-20091113204419-o5vbwnq5f7feedwu-240
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2014-02-21 04:32:11 +0000
+++ b/src/ChangeLog     2014-02-21 07:42:42 +0000
@@ -1,3 +1,9 @@
+2014-02-21  Paul Eggert  <address@hidden>
+
+       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  <address@hidden>
 
        * dbusbind.c: Rename dbus-init-bus to dbus-init-bus-1.

=== modified file 'src/xdisp.c'
--- a/src/xdisp.c       2014-02-20 17:40:56 +0000
+++ b/src/xdisp.c       2014-02-21 07:42:42 +0000
@@ -8313,7 +8313,7 @@
   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.  */


reply via email to

[Prev in Thread] Current Thread [Next in Thread]