summaryrefslogtreecommitdiff
path: root/storage/innobase/fil/fil0crypt.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-09-30 12:48:26 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-09-30 12:49:53 +0300
commit46b785262b9f03c4d715fa8ebbeb0d9bc6bb71c0 (patch)
treec3b3d8d820d9ff8ff37ae4720ed961fc98bbff95 /storage/innobase/fil/fil0crypt.cc
parentbc70862e13f32756695d5781c793f2525aeb7187 (diff)
downloadmariadb-git-46b785262b9f03c4d715fa8ebbeb0d9bc6bb71c0.tar.gz
Fix -Wunused for CMAKE_BUILD_TYPE=RelWithDebInfo
For release builds, do not declare unused variables. unpack_row(): Omit a debug-only variable from WSREP diagnostic message. create_wsrep_THD(): Fix -Wmaybe-uninitialized for the PSI_thread_key.
Diffstat (limited to 'storage/innobase/fil/fil0crypt.cc')
-rw-r--r--storage/innobase/fil/fil0crypt.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/fil/fil0crypt.cc b/storage/innobase/fil/fil0crypt.cc
index 90b9aba70aa..e1817985685 100644
--- a/storage/innobase/fil/fil0crypt.cc
+++ b/storage/innobase/fil/fil0crypt.cc
@@ -2308,8 +2308,8 @@ static void fil_crypt_rotation_list_fill()
/* Protect the tablespace while we may
release fil_system->mutex. */
space->n_pending_ops++;
- fil_space_t* s= fil_system->read_page0(
- space->id);
+ ut_d(const fil_space_t* s=)
+ fil_system->read_page0(space->id);
ut_ad(!s || s == space);
space->n_pending_ops--;
if (!space->size) {