mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug#29125 Windows Server X64: so many compiler warnings
- Remove bothersome warning messages. This change focuses on the warnings that are covered by the ignore file: support-files/compiler_warnings.supp. - Strings are guaranteed to be max uint in length
This commit is contained in:
@ -253,7 +253,7 @@ void Lex_input_stream::body_utf8_append_literal(THD *thd,
|
||||
{
|
||||
thd->convert_string(&utf_txt,
|
||||
&my_charset_utf8_general_ci,
|
||||
txt->str, txt->length,
|
||||
txt->str, (uint) txt->length,
|
||||
txt_cs);
|
||||
}
|
||||
else
|
||||
@ -435,7 +435,7 @@ bool is_keyword(const char *name, uint len)
|
||||
bool is_lex_native_function(const LEX_STRING *name)
|
||||
{
|
||||
DBUG_ASSERT(name != NULL);
|
||||
return (get_hash_symbol(name->str, name->length, 1) != 0);
|
||||
return (get_hash_symbol(name->str, (uint) name->length, 1) != 0);
|
||||
}
|
||||
|
||||
/* make a copy of token before ptr and set yytoklen */
|
||||
@ -1074,7 +1074,7 @@ int MYSQLlex(void *arg, void *yythd)
|
||||
if (c != '.')
|
||||
{ // Found complete integer number.
|
||||
yylval->lex_str=get_token(lip, 0, lip->yyLength());
|
||||
return int_token(yylval->lex_str.str,yylval->lex_str.length);
|
||||
return int_token(yylval->lex_str.str, (uint) yylval->lex_str.length);
|
||||
}
|
||||
// fall through
|
||||
case MY_LEX_REAL: // Incomplete real number
|
||||
@ -1977,8 +1977,8 @@ void st_select_lex::print_order(String *str,
|
||||
if (order->counter_used)
|
||||
{
|
||||
char buffer[20];
|
||||
uint length= my_snprintf(buffer, 20, "%d", order->counter);
|
||||
str->append(buffer, length);
|
||||
size_t length= my_snprintf(buffer, 20, "%d", order->counter);
|
||||
str->append(buffer, (uint) length);
|
||||
}
|
||||
else
|
||||
(*order->item)->print(str, query_type);
|
||||
|
Reference in New Issue
Block a user