From ece4ce85d8c9b38cd2d5cec1c75727102208b20d Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Tue, 27 Aug 2002 23:57:47 +0200 Subject: Added -Wundeclared-selector ObjC command line option From-SVN: r56615 --- gcc/c-common.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gcc/c-common.h') diff --git a/gcc/c-common.h b/gcc/c-common.h index 961d67e..e3e4bb0 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -609,10 +609,18 @@ extern int print_struct_values; extern const char *constant_string_class_name; /* Warn if multiple methods are seen for the same selector, but with - different argument types. */ + different argument types. Performs the check on the whole selector + table at the end of compilation. */ extern int warn_selector; +/* Warn if a @selector() is found, and no method with that selector + has been previously declared. The check is done on each + @selector() as soon as it is found - so it warns about forward + declarations. */ + +extern int warn_undeclared_selector; + /* Warn if methods required by a protocol are not implemented in the class adopting it. When turned off, methods inherited to that class are also considered implemented. */ -- cgit v1.1