Fix GCC 11.2.0 -m32 (IA-32) warnings

page_create_low(): Fix -Warray-bounds

log_buffer_extend(): Fix -Wstringop-overflow
This commit is contained in:
Marko Mäkelä 2021-10-21 15:31:21 +03:00
parent 5f8561a6bc
commit a0fda162eb
2 changed files with 1 additions and 3 deletions

View File

@ -79,10 +79,8 @@ void log_buffer_extend(ulong len)
const size_t new_buf_size = ut_calc_align(len, srv_page_size);
byte* new_buf = static_cast<byte*>
(ut_malloc_dontdump(new_buf_size, PSI_INSTRUMENT_ME));
TRASH_ALLOC(new_buf, new_buf_size);
byte* new_flush_buf = static_cast<byte*>
(ut_malloc_dontdump(new_buf_size, PSI_INSTRUMENT_ME));
TRASH_ALLOC(new_flush_buf, new_buf_size);
mysql_mutex_lock(&log_sys.mutex);

View File

@ -283,7 +283,7 @@ void page_create_low(const buf_block_t* block, bool comp)
compile_time_assert(PAGE_BTR_IBUF_FREE_LIST_NODE + FLST_NODE_SIZE
<= PAGE_DATA);
page = buf_block_get_frame(block);
page = block->frame;
fil_page_set_type(page, FIL_PAGE_INDEX);