1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Remove compiler warnings

This commit is contained in:
monty@mysql.com/narttu.mysql.fi
2007-02-27 19:31:49 +02:00
parent 6163508f85
commit cfef5d04b3
12 changed files with 85 additions and 60 deletions

View File

@ -6297,12 +6297,10 @@ int Field_string::cmp(const char *a_ptr, const char *b_ptr)
void Field_string::sort_string(char *to,uint length)
{
#ifndef DBUG_OFF
uint tmp= my_strnxfrm(field_charset,
(uchar*) to, length,
(uchar*) ptr, field_length);
IF_DBUG(uint tmp=) my_strnxfrm(field_charset,
(uchar*) to, length,
(uchar*) ptr, field_length);
DBUG_ASSERT(tmp == length);
#endif
}