Commit 4578037e by Martin Thuresson Committed by Neil Vachharajani

regex.c (byte_re_match_2_internal): Split declaration and assignment to avoid…

regex.c (byte_re_match_2_internal): Split declaration and assignment to avoid -Wc++-compat warning due to goto.

2009-09-30  Martin Thuresson  <martint@google.com>

	* regex.c (byte_re_match_2_internal): Split declaration and
	assignment to avoid -Wc++-compat warning due to goto.

From-SVN: r152354
parent f2f49be3
2009-09-30 Martin Thuresson <martint@google.com>
* regex.c (byte_re_match_2_internal): Split declaration and
assignment to avoid -Wc++-compat warning due to goto.
2009-09-29 Jason Merrill <jason@redhat.com> 2009-09-29 Jason Merrill <jason@redhat.com>
* Makefile.in: Enable demangle target. * Makefile.in: Enable demangle target.
......
...@@ -5910,11 +5910,14 @@ byte_re_match_2_internal (struct re_pattern_buffer *bufp, ...@@ -5910,11 +5910,14 @@ byte_re_match_2_internal (struct re_pattern_buffer *bufp,
{ {
/* 1 if this match ends in the same string (string1 or string2) /* 1 if this match ends in the same string (string1 or string2)
as the best previous match. */ as the best previous match. */
boolean same_str_p = (FIRST_STRING_P (match_end) boolean same_str_p;
== MATCHING_IN_FIRST_STRING);
/* 1 if this match is the best seen so far. */ /* 1 if this match is the best seen so far. */
boolean best_match_p; boolean best_match_p;
same_str_p = (FIRST_STRING_P (match_end)
== MATCHING_IN_FIRST_STRING);
/* AIX compiler got confused when this was combined /* AIX compiler got confused when this was combined
with the previous declaration. */ with the previous declaration. */
if (same_str_p) if (same_str_p)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment