Commit dba743b6 authored by Marko Mäkelä's avatar Marko Mäkelä

Fix -Wunused-variable

parent 55c75b6b
...@@ -142,8 +142,8 @@ class XID_cache_element ...@@ -142,8 +142,8 @@ class XID_cache_element
} }
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)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment