ruby-changes:39603
From: nobu <ko1@a...>
Date: Wed, 26 Aug 2015 10:21:27 +0900 (JST)
Subject: [ruby-changes:39603] nobu:r51684 (trunk): symbol.c: suppress warnings
nobu 2015-08-26 10:21:15 +0900 (Wed, 26 Aug 2015) New Revision: 51684 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51684 Log: symbol.c: suppress warnings * symbol.c (rb_id_serial_to_id): suppress unused-function warnings where ID_TABLE_IMPL is 0, 1, or 11. Modified files: trunk/symbol.c Index: symbol.c =================================================================== --- symbol.c (revision 51683) +++ symbol.c (revision 51684) @@ -400,6 +400,9 @@ get_id_entry(rb_id_serial_t num, const e https://github.com/ruby/ruby/blob/trunk/symbol.c#L400 } static inline ID +#ifdef __GNUC__ +__attribute__((unused)) +#endif rb_id_serial_to_id(rb_id_serial_t num) { if (is_notop_id((ID)num)) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/