diff options
author | Duncan Sands <baldrick@free.fr> | 2009-09-06 19:28:38 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-09-06 19:28:38 +0000 |
commit | 0268790ba42e7dc0a61423343435e013b93e6c83 (patch) | |
tree | 7264030b04816daae89a4b78b71b217db7179cb5 /lib/Support/regengine.inc | |
parent | 33ef807145b3394586753061c81ccf75a262d817 (diff) | |
download | external_llvm-0268790ba42e7dc0a61423343435e013b93e6c83.zip external_llvm-0268790ba42e7dc0a61423343435e013b93e6c83.tar.gz external_llvm-0268790ba42e7dc0a61423343435e013b93e6c83.tar.bz2 |
Avoid warnings if assertions are off.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81127 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/regengine.inc')
-rw-r--r-- | lib/Support/regengine.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/regengine.inc b/lib/Support/regengine.inc index f1ba56b..0f27cfd 100644 --- a/lib/Support/regengine.inc +++ b/lib/Support/regengine.inc @@ -361,6 +361,7 @@ dissect(struct match *m, char *start, char *stop, sopno startst, sopno stopst) /* did innards match? */ if (slow(m, sp, rest, ssub, esub) != NULL) { char *dp = dissect(m, sp, rest, ssub, esub); + (void)dp; /* avoid warning if assertions off */ assert(dp == rest); } else /* no */ assert(sp == rest); @@ -400,6 +401,7 @@ dissect(struct match *m, char *start, char *stop, sopno startst, sopno stopst) assert(slow(m, ssp, sep, ssub, esub) == rest); { char *dp = dissect(m, ssp, sep, ssub, esub); + (void)dp; /* avoid warning if assertions off */ assert(dp == sep); } sp = rest; @@ -437,6 +439,7 @@ dissect(struct match *m, char *start, char *stop, sopno startst, sopno stopst) } { char *dp = dissect(m, sp, rest, ssub, esub); + (void)dp; /* avoid warning if assertions off */ assert(dp == rest); } sp = rest; |