diff options
| author | Paul Eggert | 2014-10-15 10:53:04 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-10-15 10:53:04 -0700 |
| commit | efd91b5847a269ccfa2cd7383f73369428296734 (patch) | |
| tree | ca9d08b5dd9d2bb6d6f47519cdef9e0468fa5942 /src | |
| parent | 290569dcced88403d132fc98e45210bed49baa38 (diff) | |
| download | emacs-efd91b5847a269ccfa2cd7383f73369428296734.tar.gz emacs-efd91b5847a269ccfa2cd7383f73369428296734.zip | |
* 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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/bidi.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 611e459d2a8..893ad867c2a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2014-10-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * bidi.c (bidi_find_bracket_pairs): Initialize local var. | ||
| 4 | This pacifies GCC 4.9.1 with --enable-gcc-warnings. | ||
| 5 | It's not clear to me whether the initialization is needed, | ||
| 6 | but it can't hurt so I played it safe. | ||
| 7 | |||
| 1 | 2014-10-15 Stefan Monnier <monnier@iro.umontreal.ca> | 8 | 2014-10-15 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 9 | ||
| 3 | * lisp.mk (lisp): Add emacs-lisp/eldoc.elc. | 10 | * 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) | |||
| 2450 | } | 2450 | } |
| 2451 | else if (bidi_get_category (bidi_it->type_after_wn) != NEUTRAL) | 2451 | else if (bidi_get_category (bidi_it->type_after_wn) != NEUTRAL) |
| 2452 | { | 2452 | { |
| 2453 | unsigned flag; | 2453 | unsigned flag = 0; |
| 2454 | int sp; | 2454 | int sp; |
| 2455 | 2455 | ||
| 2456 | /* Whenever we see a strong type, update the flags of | 2456 | /* Whenever we see a strong type, update the flags of |