LP #1617267: -Wunused-but-set-variable warning in Global_backup_lock::set_explicit_locks_duration for should_own

Description

**Reported in Launchpad by Laurynas Biveinis last update 29-08-2016 13:23:58

5.6 trunk:

/mnt/workspace/percona-server-5.6-trunk/BUILD_TYPE/release/Host/ubuntu-xenial-64bit/sql/lock.cc: In member function void Global_backup_lock::set_explicit_locks_duration(THD*):
/mnt/workspace/percona-server-5.6-trunk/BUILD_TYPE/release/Host/ubuntu-xenial-64bit/sql/lock.cc:1166:8: warning: variable should_own set but not used [-Wunused-but-set-variable]
bool should_own;
^

Environment

None

Smart Checklist

Activity

lpjirasync January 22, 2018 at 8:27 PM

Done

Details

Assignee

Reporter

Priority

Smart Checklist

Created January 22, 2018 at 8:26 PM
Updated January 22, 2018 at 8:27 PM
Resolved January 22, 2018 at 8:27 PM