Skip to content

Commit

Permalink
Fix GCC -Wunused-function
Browse files Browse the repository at this point in the history
debug_sync_set_action(): Declare the dummy function inline,
to silence a warning about declared-but-unused static function.
This amends commit 3ccd676.
  • Loading branch information
dr-m committed Jun 10, 2020
1 parent 3ccd676 commit e76ca24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/debug_sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit e76ca24

Please sign in to comment.