fix some warnings

This commit is contained in:
Bill Currie 2002-11-19 04:34:44 +00:00
parent 860306e324
commit a17673bb69

View file

@ -3224,14 +3224,14 @@ re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop)
matching and the regnum-th regend points to right after where we matching and the regnum-th regend points to right after where we
stopped matching the regnum-th subexpression. (The zeroth register stopped matching the regnum-th subexpression. (The zeroth register
keeps track of what the whole pattern matches.) */ keeps track of what the whole pattern matches.) */
const char **regstart, **regend; const char **regstart = 0, **regend = 0;
/* If a group that's operated upon by a repetition operator fails to /* If a group that's operated upon by a repetition operator fails to
match anything, then the register for its start will need to be match anything, then the register for its start will need to be
restored because it will have been set to wherever in the string we restored because it will have been set to wherever in the string we
are when we last see its open-group operator. Similarly for a are when we last see its open-group operator. Similarly for a
register's end. */ register's end. */
const char **old_regstart, **old_regend; const char **old_regstart = 0, **old_regend = 0;
/* The is_active field of reg_info helps us keep track of which (possibly /* The is_active field of reg_info helps us keep track of which (possibly
nested) subexpressions we are currently in. The matched_something nested) subexpressions we are currently in. The matched_something
@ -3239,14 +3239,14 @@ re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop)
matched any of the pattern so far this time through the reg_num-th matched any of the pattern so far this time through the reg_num-th
subexpression. These two fields get reset each time through any subexpression. These two fields get reset each time through any
loop their register is in. */ loop their register is in. */
register_info_type *reg_info; register_info_type *reg_info = 0;
/* The following record the register info as found in the above /* The following record the register info as found in the above
variables when we find a match better than any we've seen before. variables when we find a match better than any we've seen before.
This happens as we backtrack through the failure points, which in This happens as we backtrack through the failure points, which in
turn happens only if we have not yet matched the entire string. */ turn happens only if we have not yet matched the entire string. */
unsigned best_regs_set = false; unsigned best_regs_set = false;
const char **best_regstart, **best_regend; const char **best_regstart = 0, **best_regend = 0;
/* Logically, this is `best_regend[0]'. But we don't want to have to /* Logically, this is `best_regend[0]'. But we don't want to have to
allocate space for that if we're not allocating space for anything allocate space for that if we're not allocating space for anything
@ -3259,8 +3259,8 @@ re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop)
const char *match_end = NULL; const char *match_end = NULL;
/* Used when we pop values we don't care about. */ /* Used when we pop values we don't care about. */
const char **reg_dummy; const char **reg_dummy = 0;
register_info_type *reg_info_dummy; register_info_type *reg_info_dummy = 0;
#ifdef DEBUG #ifdef DEBUG
/* Counts the total number of registers pushed. */ /* Counts the total number of registers pushed. */