]> granicus.if.org Git - clang/commitdiff
Objective-C. revert r204965. This will make
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 28 Mar 2014 18:22:16 +0000 (18:22 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 28 Mar 2014 18:22:16 +0000 (18:22 +0000)
-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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205024 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
test/SemaObjC/selector-1.m

index f7efbbd2efcbb60639803d15c69e93d50f110769..c45e45c316d29c9f008983c0c101bdfe943eeb0d 100644 (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">;
index 8dedcdb5ea4b0f873eef4e571f39df247e9ea314..faa742616d5c35711babe30e86f0c4f14dddf0ee 100644 (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}}