[llvm-commits] [llvm] r81127 - /llvm/trunk/lib/Support/regengine.inc
Duncan Sands
baldrick at free.fr
Sun Sep 6 12:28:38 PDT 2009
Author: baldrick
Date: Sun Sep 6 14:28:38 2009
New Revision: 81127
URL: http://llvm.org/viewvc/llvm-project?rev=81127&view=rev
Log:
Avoid warnings if assertions are off.
Modified:
llvm/trunk/lib/Support/regengine.inc
Modified: llvm/trunk/lib/Support/regengine.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/regengine.inc?rev=81127&r1=81126&r2=81127&view=diff
==============================================================================
--- llvm/trunk/lib/Support/regengine.inc (original)
+++ llvm/trunk/lib/Support/regengine.inc Sun Sep 6 14:28:38 2009
@@ -361,6 +361,7 @@
/* 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 @@
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 @@
}
{
char *dp = dissect(m, sp, rest, ssub, esub);
+ (void)dp; /* avoid warning if assertions off */
assert(dp == rest);
}
sp = rest;
More information about the llvm-commits
mailing list