diff options
author | Duncan Sands <baldrick@free.fr> | 2009-09-06 12:41:19 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-09-06 12:41:19 +0000 |
commit | c2d98bc0d682419f09659d94afefd6a6266dd6ee (patch) | |
tree | 6ff2fb6fa7dd7bbbde0fb279505c904c2d883b53 /lib/Support/regengine.inc | |
parent | 8b3594afdb402e088ac1b891930c599e58992afa (diff) | |
download | llvm-c2d98bc0d682419f09659d94afefd6a6266dd6ee.tar.gz llvm-c2d98bc0d682419f09659d94afefd6a6266dd6ee.tar.bz2 llvm-c2d98bc0d682419f09659d94afefd6a6266dd6ee.tar.xz |
Remove some not-really-used variables, as warned
about by icc (#593, partial). Patch by Erick Tryzelaar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81115 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/regengine.inc')
-rw-r--r-- | lib/Support/regengine.inc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/Support/regengine.inc b/lib/Support/regengine.inc index ac848bcec8..f1ba56b02b 100644 --- a/lib/Support/regengine.inc +++ b/lib/Support/regengine.inc @@ -302,7 +302,6 @@ dissect(struct match *m, char *start, char *stop, sopno startst, sopno stopst) char *ssp; /* start of string matched by subsubRE */ char *sep; /* end of string matched by subsubRE */ char *oldssp; /* previous ssp */ - char *dp; AT("diss", start, stop, startst, stopst); sp = start; @@ -361,7 +360,7 @@ dissect(struct match *m, char *start, char *stop, sopno startst, sopno stopst) esub = es - 1; /* did innards match? */ if (slow(m, sp, rest, ssub, esub) != NULL) { - dp = dissect(m, sp, rest, ssub, esub); + char *dp = dissect(m, sp, rest, ssub, esub); assert(dp == rest); } else /* no */ assert(sp == rest); @@ -399,8 +398,10 @@ dissect(struct match *m, char *start, char *stop, sopno startst, sopno stopst) } assert(sep == rest); /* must exhaust substring */ assert(slow(m, ssp, sep, ssub, esub) == rest); - dp = dissect(m, ssp, sep, ssub, esub); - assert(dp == sep); + { + char *dp = dissect(m, ssp, sep, ssub, esub); + assert(dp == sep); + } sp = rest; break; case OCH_: @@ -434,8 +435,10 @@ dissect(struct match *m, char *start, char *stop, sopno startst, sopno stopst) else assert(OP(m->g->strip[esub]) == O_CH); } - dp = dissect(m, sp, rest, ssub, esub); - assert(dp == rest); + { + char *dp = dissect(m, sp, rest, ssub, esub); + assert(dp == rest); + } sp = rest; break; case O_PLUS: |