summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2013-01-17 01:08:49 +0200
committerMichael Widenius <monty@askmonty.org>2013-01-17 01:08:49 +0200
commitc4e00d03e79c6202100f15244b10a74386d16568 (patch)
treee3eced65d0618ac146af1c6411fd324f45e6b34f /strings
parentcf013ff949a5e05d678bdc3a37c56538fcab4a20 (diff)
downloadmariadb-git-c4e00d03e79c6202100f15244b10a74386d16568.tar.gz
Fixed compiler warning
Diffstat (limited to 'strings')
-rw-r--r--strings/ctype-ucs2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/strings/ctype-ucs2.c b/strings/ctype-ucs2.c
index 52eaece5528..6ebbae8fb5a 100644
--- a/strings/ctype-ucs2.c
+++ b/strings/ctype-ucs2.c
@@ -46,9 +46,10 @@
#define LFACTOR1 ULL(10000000000)
#define LFACTOR2 ULL(100000000000)
+#if defined(HAVE_CHARSET_utf32) || defined(HAVE_CHARSET_mb2)
static unsigned long lfactor[9]=
{ 1L, 10L, 100L, 1000L, 10000L, 100000L, 1000000L, 10000000L, 100000000L };
-
+#endif
#ifdef HAVE_CHARSET_mb2_or_mb4