mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02: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:
parent
4568152518
commit
54fbbf9591
108 changed files with 786 additions and 751 deletions
|
|
@ -851,7 +851,7 @@ int ha_archive::get_row(gzFile file_to_read, byte *buf)
|
|||
total_blob_length += ((Field_blob*) table->field[*ptr])->get_length();
|
||||
|
||||
/* Adjust our row buffer if we need be */
|
||||
buffer.alloc(total_blob_length);
|
||||
buffer.alloc((uint) total_blob_length);
|
||||
last= (char *)buffer.ptr();
|
||||
|
||||
/* Loop through our blobs and read them */
|
||||
|
|
@ -862,10 +862,10 @@ int ha_archive::get_row(gzFile file_to_read, byte *buf)
|
|||
size_t size= ((Field_blob*) table->field[*ptr])->get_length();
|
||||
if (size)
|
||||
{
|
||||
read= gzread(file_to_read, last, size);
|
||||
read= gzread(file_to_read, last, (uint) size);
|
||||
if ((size_t) read != size)
|
||||
DBUG_RETURN(HA_ERR_END_OF_FILE);
|
||||
((Field_blob*) table->field[*ptr])->set_ptr(size, last);
|
||||
((Field_blob*) table->field[*ptr])->set_ptr((uint) size, last);
|
||||
last += size;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue