From 8d3cd4301a38725229171fbbd71d587056d86de4 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Thu, 1 May 2025 17:10:55 +0900 Subject: [PATCH] Remove unnecessary prototype declarations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` internal/class.h:158:20: warning: ‘RCLASS_SET_CLASSEXT_TABLE’ declared ‘static’ but never defined [-Wunused-function] 158 | static inline void RCLASS_SET_CLASSEXT_TABLE(VALUE obj, st_table *tbl); | ^~~~~~~~~~~~~~~~~~~~~~~~~ internal/class.h:271:20: warning: ‘RCLASS_WRITE_SUBCLASSES’ declared ‘static’ but never defined [-Wunused-function] 271 | static inline void RCLASS_WRITE_SUBCLASSES(VALUE klass, rb_subclass_anchor_t *anchor); | ^~~~~~~~~~~~~~~~~~~~~~~ ``` --- internal/class.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/class.h b/internal/class.h index 4cf0843b77..ae3e8c9af1 100644 --- a/internal/class.h +++ b/internal/class.h @@ -155,7 +155,6 @@ struct RClass_and_rb_classext_t { static inline bool RCLASS_SINGLETON_P(VALUE klass); -static inline void RCLASS_SET_CLASSEXT_TABLE(VALUE obj, st_table *tbl); static inline void RCLASS_SET_PRIME_CLASSEXT_READWRITE(VALUE obj, bool readable, bool writable); #define RCLASS_EXT(c) (&((struct RClass_and_rb_classext_t*)(c))->classext) @@ -268,7 +267,6 @@ static inline void RCLASS_WRITE_CVC_TBL(VALUE klass, struct rb_id_table *table); static inline void RCLASS_WRITE_SUPERCLASSES(VALUE klass, size_t depth, VALUE *superclasses, bool owns_it, bool with_self); static inline void RCLASS_SET_SUBCLASSES(VALUE klass, rb_subclass_anchor_t *anchor); -static inline void RCLASS_WRITE_SUBCLASSES(VALUE klass, rb_subclass_anchor_t *anchor); static inline void RCLASS_WRITE_NS_SUPER_SUBCLASSES(VALUE klass, rb_ns_subclasses_t *ns_subclasses); static inline void RCLASS_WRITE_NS_MODULE_SUBCLASSES(VALUE klass, rb_ns_subclasses_t *ns_subclasses);