X-Git-Url: http://git.savannah.gnu.org/gitweb/?p=enscript.git;a=blobdiff_plain;f=compat%2Fregex.c;h=c059b4b7cf190df306710514f2edcb73790332be;hp=c6907f36fb296a3c7aa4b903b7f63c3a87e8ed7b;hb=0779ca6512bf93e8f8dfe53c1a3446adb2475acc;hpb=c856104cc2a9f8d1ad7d0a1f38c1a492e4c5f483 diff --git a/compat/regex.c b/compat/regex.c index c6907f3..c059b4b 100644 --- a/compat/regex.c +++ b/compat/regex.c @@ -2400,11 +2400,12 @@ regex_compile (pattern, size, syntax, bufp) case ')': if (syntax & RE_NO_BK_PARENS) goto normal_backslash; - if (COMPILE_STACK_EMPTY) + if (COMPILE_STACK_EMPTY) { if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD) goto normal_backslash; else FREE_STACK_RETURN (REG_ERPAREN); + } handle_close: if (fixup_alt_jump) @@ -2420,11 +2421,12 @@ regex_compile (pattern, size, syntax, bufp) } /* See similar code for backslashed left paren above. */ - if (COMPILE_STACK_EMPTY) + if (COMPILE_STACK_EMPTY) { if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD) goto normal_char; else FREE_STACK_RETURN (REG_ERPAREN); + } /* Since we just checked for an empty stack above, this ``can't happen''. */ @@ -3106,8 +3108,6 @@ re_compile_fastmap (bufp) char *destination; #endif /* We don't push any register information onto the failure stack. */ - unsigned num_regs = 0; - register char *fastmap = bufp->fastmap; unsigned char *pattern = bufp->buffer; unsigned char *p = pattern; @@ -4801,8 +4801,8 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop) register from the stack, since lowest will == highest in `pop_failure_point'. */ active_reg_t dummy_low_reg, dummy_high_reg; - unsigned char *pdummy; - const char *sdummy; + unsigned char *pdummy __attribute__ ((__unused__)); + const char *sdummy __attribute__ ((__unused__)); DEBUG_PRINT1 ("EXECUTING pop_failure_jump.\n"); POP_FAILURE_POINT (sdummy, pdummy,