diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-08-16 20:16:46 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-08-16 20:16:46 +0000 |
commit | ca7a7be386537f9d3c070a71c1267aa4fa9f596c (patch) | |
tree | b4b2ff32b8babd1d2a007a8f1001927b0e1897bb | |
parent | 81c53b461951ef5de8ea3d55d06aed8af8d81ac4 (diff) |
objective-C: make -Wcast-of-sel-type the default.
// rdar://12107381
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162045 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 2 | ||||
-rw-r--r-- | test/SemaObjC/warn-cast-of-sel-expr.m | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 2d47db9e83..4733505a00 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -4964,7 +4964,7 @@ def err_cast_pointer_from_non_pointer_int : Error< "operand of type %0 cannot be cast to a pointer type">; def warn_cast_pointer_from_sel : Warning< "cast of type %0 to %1 is deprecated; use sel_getName instead">, - InGroup<SelTypeCast>, DefaultIgnore; + InGroup<SelTypeCast>; def err_cast_pointer_to_non_pointer_int : Error< "pointer cannot be cast to type %0">; def err_typecheck_expect_scalar_operand : Error< diff --git a/test/SemaObjC/warn-cast-of-sel-expr.m b/test/SemaObjC/warn-cast-of-sel-expr.m index d2f243cc03..97915a0094 100644 --- a/test/SemaObjC/warn-cast-of-sel-expr.m +++ b/test/SemaObjC/warn-cast-of-sel-expr.m @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify -Wcast-of-sel-type -Wno-unused-value %s +// RUN: %clang_cc1 -fsyntax-only -verify -Wno-unused-value %s // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify -Wcast-of-sel-type -Wno-unused-value %s // rdar://12107381 |