Objective-C. revert r204965. This will make

-Wselector-type-mismatch default again. After
internal discussions, we think that in most cases
it has helped our developers find hard to detect
undefined behaviors. We are going to provide a syntax
(and fix-it) to suppress the warning in remaining of
false positive cases.

llvm-svn: 205024
This commit is contained in:
Fariborz Jahanian 2014-03-28 18:22:16 +00:00
parent d971cd1b18
commit 87f88c1850
2 changed files with 2 additions and 2 deletions

View File

@ -907,7 +907,7 @@ def warn_unimplemented_protocol_method : Warning<
def warning_multiple_selectors: Warning<
"several methods with selector %0 of mismatched types are found "
"for the @selector expression">,
InGroup<SelectorTypeMismatch>, DefaultIgnore;
InGroup<SelectorTypeMismatch>;
// C++ declarations
def err_static_assert_expression_is_not_constant : Error<
"static_assert expression is not an integral constant expression">;

View File

@ -1,4 +1,4 @@
// RUN: %clang_cc1 -Wselector-type-mismatch -verify %s
// RUN: %clang_cc1 -verify %s
@interface I
- (id) compare: (char) arg1; // expected-note {{method 'compare:' declared here}}