summaryrefslogtreecommitdiff
path: root/symbol.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-26 01:21:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-26 01:21:15 +0000
commite2803efc3d7b1d8520ab7665eb8765c1dee41846 (patch)
tree3f3d62399ab3bcdbd71d84f2221a04c5e0811d6d /symbol.c
parenta3b9b9870ebf8e6660572cc266f21d8e9c6fe4d4 (diff)
downloadbundler-e2803efc3d7b1d8520ab7665eb8765c1dee41846.tar.gz
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
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c3
1 files changed, 3 insertions, 0 deletions
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)) {