From e2803efc3d7b1d8520ab7665eb8765c1dee41846 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 26 Aug 2015 01:21:15 +0000 Subject: symbol.c: suppress warnings * symbol.c (rb_id_serial_to_id): suppress unused-function warnings where ID_TABLE_IMPL is 0, 1, or 11. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- symbol.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'symbol.c') diff --git a/symbol.c b/symbol.c index cd67c53663..9917795190 100644 --- a/symbol.c +++ b/symbol.c @@ -400,6 +400,9 @@ get_id_entry(rb_id_serial_t num, const enum id_entry_type t) } static inline ID +#ifdef __GNUC__ +__attribute__((unused)) +#endif rb_id_serial_to_id(rb_id_serial_t num) { if (is_notop_id((ID)num)) { -- cgit v1.2.3