Place "incompatible pointer types assigning..." warning under a flag, allowing it to be surgically mapped to an error.

llvm-svn: 130916
This commit is contained in:
Ted Kremenek 2011-05-05 04:37:05 +00:00
parent fdc5d84ba3
commit 4587d81191
1 changed files with 2 additions and 1 deletions

View File

@ -3185,7 +3185,8 @@ def ext_typecheck_convert_incompatible_pointer : ExtWarn<
"%select{assigning to|passing|returning|converting|initializing|sending|casting}2"
" %0 "
"%select{from|to parameter of type|from a function with result type|to type|"
"with an expression of type|to parameter of type|to type}2 %1">;
"with an expression of type|to parameter of type|to type}2 %1">,
InGroup<DiagGroup<"incompatible-pointer-types">>;
def ext_typecheck_convert_discards_qualifiers : ExtWarn<
"%select{assigning to|passing|returning|converting|initializing|sending|casting}2"
" %0 "