Fix -Wunused-variable

This commit is contained in:
Marko Mäkelä 2019-10-12 06:57:02 +03:00
parent 55c75b6bb3
commit dba743b653

View File

@ -142,8 +142,8 @@ public:
} }
static void lf_alloc_destructor(uchar *ptr) static void lf_alloc_destructor(uchar *ptr)
{ {
XID_cache_element *element= (XID_cache_element*) (ptr + LF_HASH_OVERHEAD); DBUG_ASSERT(!reinterpret_cast<XID_cache_element*>(ptr + LF_HASH_OVERHEAD)
DBUG_ASSERT(!element->is_set(ACQUIRED)); ->is_set(ACQUIRED));
} }
static uchar *key(const XID_cache_element *element, size_t *length, static uchar *key(const XID_cache_element *element, size_t *length,
my_bool not_used __attribute__((unused))) my_bool not_used __attribute__((unused)))