mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +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:
@ -100,7 +100,7 @@ err:
|
||||
|
||||
int Buffer::get_size()
|
||||
{
|
||||
return buffer_size;
|
||||
return (uint) buffer_size;
|
||||
}
|
||||
|
||||
|
||||
|
@ -163,7 +163,7 @@ static bool start_process(Instance_options *instance_options,
|
||||
|
||||
int cmdlen= 0;
|
||||
for (int i= 0; instance_options->argv[i] != 0; i++)
|
||||
cmdlen+= strlen(instance_options->argv[i]) + 3;
|
||||
cmdlen+= (uint) strlen(instance_options->argv[i]) + 3;
|
||||
cmdlen++; /* make room for the null */
|
||||
|
||||
char *cmdline= new char[cmdlen];
|
||||
|
@ -103,7 +103,7 @@ const char *Options::Debug::config_str= "d:t:i:O,im.trace";
|
||||
#endif
|
||||
|
||||
static const char * const ANGEL_PID_FILE_SUFFIX= ".angel.pid";
|
||||
static const int ANGEL_PID_FILE_SUFFIX_LEN= strlen(ANGEL_PID_FILE_SUFFIX);
|
||||
static const int ANGEL_PID_FILE_SUFFIX_LEN= (uint) strlen(ANGEL_PID_FILE_SUFFIX);
|
||||
|
||||
/*
|
||||
List of options, accepted by the instance manager.
|
||||
|
@ -206,7 +206,7 @@ inline void get_word(const char **text, size_t *word_len,
|
||||
break;
|
||||
}
|
||||
|
||||
*word_len= word_end - *text;
|
||||
*word_len= (uint) (word_end - *text);
|
||||
}
|
||||
|
||||
#endif /* INCLUDES_MYSQL_INSTANCE_MANAGER_PARSE_H */
|
||||
|
Reference in New Issue
Block a user