From: Paul Eggert Date: Fri, 21 Feb 2014 07:42:42 +0000 (-0800) Subject: Pacify GCC when configuring with --enable-gcc-warnings. X-Git-Tag: emacs-24.3.90~173^2^2~41 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9901fa1abc07da3f3847825da6d75bc32fa38aba;p=emacs.git Pacify GCC when configuring with --enable-gcc-warnings. * xdisp.c (move_it_in_display_line_to) [lint]: Initialize recently-added local. --- diff --git a/src/ChangeLog b/src/ChangeLog index 05fccace771..ae35ff6cce2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2014-02-21 Paul Eggert + + 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 * dbusbind.c: Rename dbus-init-bus to dbus-init-bus-1. diff --git a/src/xdisp.c b/src/xdisp.c index 840ff1288e5..c35a64d0774 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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. */