From dba743b6536a0554c327ffc196456abd043fbcf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Sat, 12 Oct 2019 06:57:02 +0300 Subject: [PATCH] Fix -Wunused-variable --- sql/xa.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/xa.cc b/sql/xa.cc index c4b983aa4f5..9ee1cefbaf9 100644 --- a/sql/xa.cc +++ b/sql/xa.cc @@ -142,8 +142,8 @@ public: } static void lf_alloc_destructor(uchar *ptr) { - XID_cache_element *element= (XID_cache_element*) (ptr + LF_HASH_OVERHEAD); - DBUG_ASSERT(!element->is_set(ACQUIRED)); + DBUG_ASSERT(!reinterpret_cast(ptr + LF_HASH_OVERHEAD) + ->is_set(ACQUIRED)); } static uchar *key(const XID_cache_element *element, size_t *length, my_bool not_used __attribute__((unused)))