Skip to content

Commit a0fda16

Browse files
committed
Fix GCC 11.2.0 -m32 (IA-32) warnings
page_create_low(): Fix -Warray-bounds log_buffer_extend(): Fix -Wstringop-overflow
1 parent 5f8561a commit a0fda16

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

storage/innobase/log/log0log.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,8 @@ void log_buffer_extend(ulong len)
7979
const size_t new_buf_size = ut_calc_align(len, srv_page_size);
8080
byte* new_buf = static_cast<byte*>
8181
(ut_malloc_dontdump(new_buf_size, PSI_INSTRUMENT_ME));
82-
TRASH_ALLOC(new_buf, new_buf_size);
8382
byte* new_flush_buf = static_cast<byte*>
8483
(ut_malloc_dontdump(new_buf_size, PSI_INSTRUMENT_ME));
85-
TRASH_ALLOC(new_flush_buf, new_buf_size);
8684

8785
mysql_mutex_lock(&log_sys.mutex);
8886

storage/innobase/page/page0page.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ void page_create_low(const buf_block_t* block, bool comp)
283283
compile_time_assert(PAGE_BTR_IBUF_FREE_LIST_NODE + FLST_NODE_SIZE
284284
<= PAGE_DATA);
285285

286-
page = buf_block_get_frame(block);
286+
page = block->frame;
287287

288288
fil_page_set_type(page, FIL_PAGE_INDEX);
289289

0 commit comments

Comments
 (0)