From e76ca24bb116ea4ca61d626e939b20e1e2338dc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Wed, 10 Jun 2020 07:29:26 +0300 Subject: [PATCH] Fix GCC -Wunused-function debug_sync_set_action(): Declare the dummy function inline, to silence a warning about declared-but-unused static function. This amends commit 3ccd6766d0e47b4331505789eb114c5cf1534ecf. --- sql/debug_sync.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/debug_sync.h b/sql/debug_sync.h index cdc926da8d8..3b8aa8815e1 100644 --- a/sql/debug_sync.h +++ b/sql/debug_sync.h @@ -49,7 +49,8 @@ extern uchar *debug_sync_value_ptr(THD *thd); static inline void debug_sync_init_thread(THD *thd) {} static inline void debug_sync_end_thread(THD *thd) {} static inline void debug_sync_reset_thread(THD *thd) {} -static bool debug_sync_set_action(THD *thd, const char *action_str, size_t len) {return false;} +static inline bool debug_sync_set_action(THD *, const char *, size_t) +{ return false; } #endif /* defined(ENABLED_DEBUG_SYNC) */ #endif /* DEBUG_SYNC_INCLUDED */