Don't warn when adding a new method to an implementation.

Methods defined in the implementation but not declared in the interface are
just fine.
This commit is contained in:
Bill Currie 2010-12-16 20:04:08 +09:00
parent 6d494bfcdf
commit 699799bfc8

View file

@ -469,12 +469,6 @@ class_find_method (class_type_t *class_type, method_t *method)
} }
sel = dstring_newstr (); sel = dstring_newstr ();
selector_name (sel, (keywordarg_t *)method->selector); selector_name (sel, (keywordarg_t *)method->selector);
if (options.warnings.interface_check) {
warning (0, "Method `%c%s' not found in %s%s's interface",
method->instance ? '-' : '+',
sel->str, class_name,
category_name ? va (" (%s)", category_name) : "");
}
set_self_type (start_class, method); set_self_type (start_class, method);
add_method (start_methods, method); add_method (start_methods, method);
dstring_delete (sel); dstring_delete (sel);