diff options
author | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-27 21:57:47 +0000 |
---|---|---|
committer | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-27 21:57:47 +0000 |
commit | a70e45e3e17e13a5562ad7289b44fce205489a99 (patch) | |
tree | 1efb184e0cd44cf2aac37370cf4d5a447a672355 /gcc/c-common.h | |
parent | dcc8c07282095b1402e7e2cc1bab8a5adb339629 (diff) | |
download | gcc-a70e45e3e17e13a5562ad7289b44fce205489a99.tar.gz |
Added -Wundeclared-selector ObjC command line option
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56615 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r-- | gcc/c-common.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h index 961d67ef07b..e3e4bb06cbb 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. */ |