mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Remove compiler warnings and remove not used variables
(Found during build process)
This commit is contained in:
@ -372,7 +372,7 @@ static int my_strnxfrm_ucs2(CHARSET_INFO *cs,
|
||||
dst+=res;
|
||||
}
|
||||
if (dst < de)
|
||||
cs->cset->fill(cs, dst, de - dst, ' ');
|
||||
cs->cset->fill(cs, (char*) dst, de - dst, ' ');
|
||||
return dstlen;
|
||||
}
|
||||
|
||||
@ -1385,7 +1385,7 @@ int my_strnxfrm_ucs2_bin(CHARSET_INFO *cs __attribute__((unused)),
|
||||
if (dst != src)
|
||||
memcpy(dst,src,srclen= min(dstlen,srclen));
|
||||
if (dstlen > srclen)
|
||||
cs->cset->fill(cs, dst + srclen, dstlen - srclen, ' ');
|
||||
cs->cset->fill(cs, (char*) dst + srclen, dstlen - srclen, ' ');
|
||||
return dstlen;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user