mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Avoid warnings if assertions are off.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81127 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
33ef807145
commit
0268790ba4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user