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:
@ -759,13 +759,13 @@ static bool insert_params_with_log(Prepared_statement *stmt, uchar *null_array,
|
||||
Item_param *param= *it;
|
||||
if (param->state != Item_param::LONG_DATA_VALUE)
|
||||
{
|
||||
if (is_param_null(null_array, it - begin))
|
||||
if (is_param_null(null_array, (uint) (it - begin)))
|
||||
param->set_null();
|
||||
else
|
||||
{
|
||||
if (read_pos >= data_end)
|
||||
DBUG_RETURN(1);
|
||||
param->set_param_func(param, &read_pos, data_end - read_pos);
|
||||
param->set_param_func(param, &read_pos, (uint) (data_end - read_pos));
|
||||
if (param->state == Item_param::NO_VALUE)
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
@ -797,13 +797,13 @@ static bool insert_params(Prepared_statement *stmt, uchar *null_array,
|
||||
Item_param *param= *it;
|
||||
if (param->state != Item_param::LONG_DATA_VALUE)
|
||||
{
|
||||
if (is_param_null(null_array, it - begin))
|
||||
if (is_param_null(null_array, (uint) (it - begin)))
|
||||
param->set_null();
|
||||
else
|
||||
{
|
||||
if (read_pos >= data_end)
|
||||
DBUG_RETURN(1);
|
||||
param->set_param_func(param, &read_pos, data_end - read_pos);
|
||||
param->set_param_func(param, &read_pos, (uint) (data_end - read_pos));
|
||||
if (param->state == Item_param::NO_VALUE)
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user