summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2010-10-17 22:32:07 -0600
committerFather Chrysostomos <sprout@cpan.org>2010-10-21 05:55:49 -0700
commitd53d27f973b3f4329ad8aa1e1a11554c8e19c3e3 (patch)
tree7c13a990cf71f82785c6997b3be970ccbcd2a11a /regcomp.h
parentffd08bbf4eee59b6c86c374289d59dfad26344ad (diff)
downloadperl-d53d27f973b3f4329ad8aa1e1a11554c8e19c3e3.tar.gz
regcomp.c: Get rid of compiler warning.
This patch should remove a compiler warning that is currently only showing up in one compiler. It declares a debug-only variable to be volatile, so should silence the warning that it is getting clobbered. Since this variable is only used for debugging purposes, when DEBUGGING is defined, performance should not be an issue.
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.h b/regcomp.h
index dcb449f543..9e1a4e3a9c 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -787,7 +787,7 @@ re.pm, especially to the documentation.
#ifdef DEBUGGING
-#define GET_RE_DEBUG_FLAGS_DECL IV re_debug_flags = 0; GET_RE_DEBUG_FLAGS;
+#define GET_RE_DEBUG_FLAGS_DECL VOL IV re_debug_flags = 0; GET_RE_DEBUG_FLAGS;
#define RE_PV_COLOR_DECL(rpv,rlen,isuni,dsv,pv,l,m,c1,c2) \
const char * const rpv = \