From efd91b5847a269ccfa2cd7383f73369428296734 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 15 Oct 2014 10:53:04 -0700 Subject: [PATCH] * bidi.c (bidi_find_bracket_pairs): Initialize local var. This pacifies GCC 4.9.1 with --enable-gcc-warnings. It's not clear to me whether the initialization is needed, but it can't hurt so I played it safe. --- src/ChangeLog | 7 +++++++ src/bidi.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 611e459d2a8..893ad867c2a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2014-10-15 Paul Eggert + + * bidi.c (bidi_find_bracket_pairs): Initialize local var. + This pacifies GCC 4.9.1 with --enable-gcc-warnings. + It's not clear to me whether the initialization is needed, + but it can't hurt so I played it safe. + 2014-10-15 Stefan Monnier * lisp.mk (lisp): Add emacs-lisp/eldoc.elc. diff --git a/src/bidi.c b/src/bidi.c index 464879ddf98..67eb59e7899 100644 --- a/src/bidi.c +++ b/src/bidi.c @@ -2450,7 +2450,7 @@ bidi_find_bracket_pairs (struct bidi_it *bidi_it) } else if (bidi_get_category (bidi_it->type_after_wn) != NEUTRAL) { - unsigned flag; + unsigned flag = 0; int sp; /* Whenever we see a strong type, update the flags of -- 2.11.4.GIT