1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Avoid warnings if assertions are off.

llvm-svn: 81127
This commit is contained in:
Duncan Sands 2009-09-06 19:28:38 +00:00
parent 265ebcdcfc
commit 9041cda7c7

View File

@ -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;