Commit a0fda162 authored by Marko Mäkelä's avatar Marko Mäkelä

Fix GCC 11.2.0 -m32 (IA-32) warnings

page_create_low(): Fix -Warray-bounds

log_buffer_extend(): Fix -Wstringop-overflow
parent 5f8561a6
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment