mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
fix some warnings
This commit is contained in:
parent
860306e324
commit
a17673bb69
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
stopped matching the regnum-th subexpression. (The zeroth register
|
||||
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
|
||||
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
|
||||
are when we last see its open-group operator. Similarly for a
|
||||
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
|
||||
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
|
||||
subexpression. These two fields get reset each time through any
|
||||
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
|
||||
variables when we find a match better than any we've seen before.
|
||||
This happens as we backtrack through the failure points, which in
|
||||
turn happens only if we have not yet matched the entire string. */
|
||||
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
|
||||
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;
|
||||
|
||||
/* Used when we pop values we don't care about. */
|
||||
const char **reg_dummy;
|
||||
register_info_type *reg_info_dummy;
|
||||
const char **reg_dummy = 0;
|
||||
register_info_type *reg_info_dummy = 0;
|
||||
|
||||
#ifdef DEBUG
|
||||
/* Counts the total number of registers pushed. */
|
||||
|
|
Loading…
Reference in a new issue