MDEV-23888 fixup: GCC 12 -Wunused-value

This commit is contained in:
Marko Mäkelä 2022-02-23 06:00:01 +02:00
parent fac9224d85
commit 8b7abe21e0

View File

@ -2811,7 +2811,7 @@ innobase_trx_init(
while holding lock_sys.mutex, by lock_rec_enqueue_waiting(),
will not end up acquiring LOCK_global_system_variables in
intern_sys_var_ptr(). */
THDVAR(thd, lock_wait_timeout);
(void) THDVAR(thd, lock_wait_timeout);
trx->check_foreigns = !thd_test_options(
thd, OPTION_NO_FOREIGN_KEY_CHECKS);