]> git.eshelyaron.com Git - emacs.git/commitdiff
* bidi.c (bidi_find_bracket_pairs): Initialize local var.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 15 Oct 2014 17:53:04 +0000 (10:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 15 Oct 2014 17:53:04 +0000 (10:53 -0700)
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
src/bidi.c

index 611e459d2a81a236f105f3d46adf78c51f353cef..893ad867c2a83219b1b6640fc3a4bf2ab9282c1b 100644 (file)
@@ -1,3 +1,10 @@
+2014-10-15  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * 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  <monnier@iro.umontreal.ca>
 
        * lisp.mk (lisp): Add emacs-lisp/eldoc.elc.
index 464879ddf98f106a4f015fa90d8712187a62b771..67eb59e7899c4fe3a19ea6e0eec6f42c226adf9a 100644 (file)
@@ -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