From 7b75fc16a59de44c5b48efdaf8609cc1543ceff5 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 7 Nov 2013 12:22:48 -0700 Subject: [PATCH] regexec.c: Fix compiler warning We add an #ifdef DEBUGGING around a variable declaration, as that variable actually only gets used in DEBUGGING compiles. --- regexec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/regexec.c b/regexec.c index 7f84fcb..1aba438 100644 --- a/regexec.c +++ b/regexec.c @@ -37,10 +37,12 @@ #include "re_top.h" #endif +#ifdef DEBUGGING /* At least one required character in the target string is expressible only in * UTF-8. */ static const char* const non_utf8_target_but_utf8_required = "Can't match, because target string needs to be in UTF-8\n"; +#endif #define NON_UTF8_TARGET_BUT_UTF8_REQUIRED(target) STMT_START { \ DEBUG_EXECUTE_r(PerlIO_printf(Perl_debug_log, "%s", non_utf8_target_but_utf8_required));\ -- 2.7.4