diff options
author | Nicola Pero <n.pero@mi.flashnet.it> | 2002-08-27 23:57:47 +0200 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2002-08-27 21:57:47 +0000 |
commit | ece4ce85d8c9b38cd2d5cec1c75727102208b20d (patch) | |
tree | 1efb184e0cd44cf2aac37370cf4d5a447a672355 /gcc/c-common.c | |
parent | ac2a2d6f2f7017e24ed27845af4d48bfc3ba1e4f (diff) | |
download | gcc-ece4ce85d8c9b38cd2d5cec1c75727102208b20d.tar.gz |
Added -Wundeclared-selector ObjC command line option
From-SVN: r56615
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 9e9e409c69a..875cabcdc55 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -438,10 +438,18 @@ int print_struct_values; 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. */ 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. */ + +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. */ |