From: Fariborz Jahanian Date: Fri, 28 Mar 2014 18:22:16 +0000 (+0000) Subject: Objective-C. revert r204965. This will make X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a88ee9f93b98a4b8682754905bca09fce0293f0d;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205024 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index f7efbbd2ef..c45e45c316 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -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, DefaultIgnore; + InGroup; // C++ declarations def err_static_assert_expression_is_not_constant : Error< "static_assert expression is not an integral constant expression">; diff --git a/test/SemaObjC/selector-1.m b/test/SemaObjC/selector-1.m index 8dedcdb5ea..faa742616d 100644 --- a/test/SemaObjC/selector-1.m +++ b/test/SemaObjC/selector-1.m @@ -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}}