From 16904ab97db6fe174ec35fb3ec53e72d1f617d70 Mon Sep 17 00:00:00 2001 From: drrtuy Date: Tue, 25 Mar 2025 20:11:46 +0000 Subject: [PATCH] chore(compilation): fix to satisfy specific warning --- dbcon/mysql/ha_mcs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbcon/mysql/ha_mcs.cpp b/dbcon/mysql/ha_mcs.cpp index 82d2a9d73..0ef4430dc 100644 --- a/dbcon/mysql/ha_mcs.cpp +++ b/dbcon/mysql/ha_mcs.cpp @@ -83,9 +83,9 @@ pthread_mutex_t mcs_mutex; Function we use in the creation of our hash to get key. */ -static uchar* mcs_get_key(void* share, size_t* length, my_bool not_used __attribute__((unused))) +static const uchar* mcs_get_key(const void* share, size_t* length, my_bool not_used __attribute__((unused))) { - auto* sharePtr = reinterpret_cast(share); + auto* sharePtr = reinterpret_cast(share); *length = sharePtr->table_name_length; return (uchar*)sharePtr->table_name; }