r205066 - Objective-C. Make -Wselector-type-mismatch off by

Fariborz Jahanian fjahanian at apple.com
Fri Mar 28 16:23:13 PDT 2014


Author: fjahanian
Date: Fri Mar 28 18:23:12 2014
New Revision: 205066

URL: http://llvm.org/viewvc/llvm-project?rev=205066&view=rev
Log:
Objective-C. Make -Wselector-type-mismatch off by
default until we provide a work-around for warning
suppression.

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
    cfe/trunk/test/SemaObjC/selector-1.m

Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=205066&r1=205065&r2=205066&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Fri Mar 28 18:23:12 2014
@@ -907,7 +907,7 @@ def warn_unimplemented_protocol_method :
 def warning_multiple_selectors: Warning<
   "several methods with selector %0 of mismatched types are found "
   "for the @selector expression">,
-  InGroup<SelectorTypeMismatch>;
+  InGroup<SelectorTypeMismatch>, DefaultIgnore;
 // C++ declarations
 def err_static_assert_expression_is_not_constant : Error<
   "static_assert expression is not an integral constant expression">;

Modified: cfe/trunk/test/SemaObjC/selector-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/selector-1.m?rev=205066&r1=205065&r2=205066&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/selector-1.m (original)
+++ cfe/trunk/test/SemaObjC/selector-1.m Fri Mar 28 18:23:12 2014
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -verify %s 
+// RUN: %clang_cc1  -Wselector-type-mismatch -verify %s 
 
 @interface I
 - (id) compare: (char) arg1; // expected-note {{method 'compare:' declared here}}





More information about the cfe-commits mailing list