From f2fe5cb2825144dcd8d2383bd38bc83fa4eafdf1 Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Fri, 10 Mar 2017 19:06:33 +0000 Subject: Fix several compile warnings on Windows --- strings/ctype-uca.c | 2 +- strings/ctype-utf8.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'strings') diff --git a/strings/ctype-uca.c b/strings/ctype-uca.c index 79ad8ca7302..e3ed531df93 100644 --- a/strings/ctype-uca.c +++ b/strings/ctype-uca.c @@ -31610,7 +31610,7 @@ my_uca_implicit_weight_put(uint16 *to, my_wc_t code, uint level) break; } /* Primary level */ - to[0]= (code >> 15) + my_uca_implicit_weight_base(code); + to[0]= (uint16)(code >> 15) + my_uca_implicit_weight_base(code); to[1]= (code & 0x7FFF) | 0x8000; to[2]= 0; } diff --git a/strings/ctype-utf8.c b/strings/ctype-utf8.c index 6ab07d99e23..683c80f643d 100644 --- a/strings/ctype-utf8.c +++ b/strings/ctype-utf8.c @@ -4831,7 +4831,6 @@ my_strnxfrm_unicode_full_bin(CHARSET_INFO *cs, uchar *dst, size_t dstlen, uint nweights, const uchar *src, size_t srclen, uint flags) { - my_wc_t UNINIT_VAR(wc); uchar *dst0= dst; uchar *de= dst + dstlen; @@ -4877,7 +4876,6 @@ my_strnxfrm_unicode_full_nopad_bin(CHARSET_INFO *cs, uchar *dst, size_t dstlen, uint nweights, const uchar *src, size_t srclen, uint flags) { - my_wc_t UNINIT_VAR(wc); uchar *dst0= dst; uchar *de= dst + dstlen; -- cgit v1.2.1