aboutsummaryrefslogtreecommitdiffstats
path: root/vm_method.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c
index 9ebeeb4a4b..407b5b7254 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -203,8 +203,9 @@ rb_add_method(VALUE klass, ID mid, rb_method_type_t type, void *opts, rb_method_
old_me->type != VM_METHOD_TYPE_UNDEF) {
rb_warning("method redefined; discarding old %s", rb_id2name(mid));
}
-
+#if defined(__cplusplus) || (__STDC_VERSION__ >= 199901L)
// TODO: free old_me
+#endif
}
/* check mid */