]> granicus.if.org Git - clang/commitdiff
objective-C: make -Wcast-of-sel-type the default.
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 16 Aug 2012 20:16:46 +0000 (20:16 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Thu, 16 Aug 2012 20:16:46 +0000 (20:16 +0000)
// rdar://12107381

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

include/clang/Basic/DiagnosticSemaKinds.td
test/SemaObjC/warn-cast-of-sel-expr.m

index 2d47db9e83e5407f438a421f72541dedcf1abed3..4733505a00b5d6157d3c139819d8e951ff5844e7 100644 (file)
@@ -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<
index d2f243cc036c6bee96dabf3171646caaa7c70f4f..97915a0094ef33a572a6fef15dea2bec10d66cb4 100644 (file)
@@ -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