Commit 2465d3e0 authored by Marko Mäkelä's avatar Marko Mäkelä

Remove unnecessary __attribute__((unused))

parent 88cc78c9
...@@ -2402,7 +2402,6 @@ DECLARE_THREAD(srv_master_thread)( ...@@ -2402,7 +2402,6 @@ DECLARE_THREAD(srv_master_thread)(
/** @return whether purge should exit due to shutdown */ /** @return whether purge should exit due to shutdown */
static bool srv_purge_should_exit() static bool srv_purge_should_exit()
{ {
uint32_t history_size __attribute__((unused));
ut_ad(srv_shutdown_state == SRV_SHUTDOWN_NONE ut_ad(srv_shutdown_state == SRV_SHUTDOWN_NONE
|| srv_shutdown_state == SRV_SHUTDOWN_CLEANUP); || srv_shutdown_state == SRV_SHUTDOWN_CLEANUP);
...@@ -2413,7 +2412,8 @@ static bool srv_purge_should_exit() ...@@ -2413,7 +2412,8 @@ static bool srv_purge_should_exit()
return(true); return(true);
} }
/* Slow shutdown was requested. */ /* Slow shutdown was requested. */
if ((history_size = trx_sys.rseg_history_len)) { uint32_t history_size = trx_sys.rseg_history_len;
if (history_size) {
#if defined HAVE_SYSTEMD && !defined EMBEDDED_LIBRARY #if defined HAVE_SYSTEMD && !defined EMBEDDED_LIBRARY
static ib_time_t progress_time; static ib_time_t progress_time;
ib_time_t time = ut_time(); ib_time_t time = ut_time();
......
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