summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorjani@a88-113-38-195.elisa-laajakaista.fi <>2007-02-27 11:27:04 +0200
committerjani@a88-113-38-195.elisa-laajakaista.fi <>2007-02-27 11:27:04 +0200
commit6163508f8526c0b88a843c8c5dbaab94f46f1373 (patch)
tree6a3fee1594ffd4bdb937f5f56c08a0b76745ae34 /strings
parent83a5eac0a43dfd7ca4ac4d01926c4dfc668a46e4 (diff)
downloadmariadb-git-6163508f8526c0b88a843c8c5dbaab94f46f1373.tar.gz
Fixes for compiler warnings.
Diffstat (limited to 'strings')
-rw-r--r--strings/ctype-ucs2.c2
-rw-r--r--strings/ctype-utf8.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/strings/ctype-ucs2.c b/strings/ctype-ucs2.c
index e09b653fd62..d3b65aa1643 100644
--- a/strings/ctype-ucs2.c
+++ b/strings/ctype-ucs2.c
@@ -322,6 +322,7 @@ static int my_strncasecmp_ucs2(CHARSET_INFO *cs,
const char *te=t+len;
MY_UNICASE_INFO **uni_plane= cs->caseinfo;
LINT_INIT(s_wc);
+ LINT_INIT(t_wc);
while ( s < se && t < te )
{
@@ -1385,6 +1386,7 @@ int my_strnncoll_ucs2_bin(CHARSET_INFO *cs,
const uchar *se=s+slen;
const uchar *te=t+tlen;
LINT_INIT(s_wc);
+ LINT_INIT(t_wc);
while ( s < se && t < te )
{
diff --git a/strings/ctype-utf8.c b/strings/ctype-utf8.c
index 827c274e84a..0536d445533 100644
--- a/strings/ctype-utf8.c
+++ b/strings/ctype-utf8.c
@@ -2313,6 +2313,7 @@ static int my_strnncoll_utf8(CHARSET_INFO *cs,
const uchar *te=t+tlen;
MY_UNICASE_INFO **uni_plane= cs->caseinfo;
LINT_INIT(s_wc);
+ LINT_INIT(t_wc);
while ( s < se && t < te )
{
@@ -2383,6 +2384,7 @@ static int my_strnncollsp_utf8(CHARSET_INFO *cs,
const uchar *se= s+slen, *te= t+tlen;
MY_UNICASE_INFO **uni_plane= cs->caseinfo;
LINT_INIT(s_wc);
+ LINT_INIT(t_wc);
#ifndef VARCHAR_WITH_DIFF_ENDSPACE_ARE_DIFFERENT_FOR_UNIQUE
diff_if_only_endspace_difference= 0;