From d53d27f973b3f4329ad8aa1e1a11554c8e19c3e3 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sun, 17 Oct 2010 22:32:07 -0600 Subject: [PATCH] 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. --- regcomp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regcomp.h b/regcomp.h index dcb449f..9e1a4e3 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 = \ -- 2.7.4