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

Fix GCC 9.3.0 -Wunused-but-set-variable

parent 7d51c359
...@@ -3050,7 +3050,7 @@ btr_cur_optimistic_insert( ...@@ -3050,7 +3050,7 @@ btr_cur_optimistic_insert(
page_t* page; page_t* page;
rec_t* dummy; rec_t* dummy;
ibool leaf; ibool leaf;
ibool reorg; ibool reorg __attribute__((unused));
ibool inherit = TRUE; ibool inherit = TRUE;
ulint rec_size; ulint rec_size;
dberr_t err; dberr_t err;
......
/***************************************************************************** /*****************************************************************************
Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, 2019, MariaDB Corporation. Copyright (c) 2017, 2020, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software the terms of the GNU General Public License as published by the Free Software
...@@ -3185,7 +3185,6 @@ fseg_free_extent( ...@@ -3185,7 +3185,6 @@ fseg_free_extent(
#endif /* BTR_CUR_HASH_ADAPT */ #endif /* BTR_CUR_HASH_ADAPT */
mtr_t* mtr) mtr_t* mtr)
{ {
ulint first_page_in_extent;
xdes_t* descr; xdes_t* descr;
ulint not_full_n_used; ulint not_full_n_used;
ulint descr_n_used; ulint descr_n_used;
...@@ -3200,7 +3199,9 @@ fseg_free_extent( ...@@ -3200,7 +3199,9 @@ fseg_free_extent(
== FSEG_MAGIC_N_VALUE); == FSEG_MAGIC_N_VALUE);
ut_d(space->modify_check(*mtr)); ut_d(space->modify_check(*mtr));
first_page_in_extent = page - (page % FSP_EXTENT_SIZE); #if defined BTR_CUR_HASH_ADAPT || defined UNIV_DEBUG
const ulint first_page_in_extent = page - (page % FSP_EXTENT_SIZE);
#endif /* BTR_CUR_HASH_ADAPT || UNIV_DEBUG */
#ifdef BTR_CUR_HASH_ADAPT #ifdef BTR_CUR_HASH_ADAPT
if (ahi) { if (ahi) {
......
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