summaryrefslogtreecommitdiff
path: root/symbol.c
diff options
context:
space:
mode:
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)) {