From 999be5f5fd879b582955689487598ea3f825e229 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Wed, 22 Jul 2009 13:27:26 +0000 Subject: * method.h : Commas at end of enum list not allowed as of C89 * vm_method.c (rb_add_method): avoid C++ comment * vm_insnhelper.c (vm_call_cfunc): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_method.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vm_method.c') diff --git a/vm_method.c b/vm_method.c index 9ebeeb4a4..407b5b725 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 */ -- cgit