Skip to content

Commit 4587d81

Browse files
committed
Place "incompatible pointer types assigning..." warning under a flag, allowing it to be surgically mapped to an error.
llvm-svn: 130916
1 parent fdc5d84 commit 4587d81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3185,7 +3185,8 @@ def ext_typecheck_convert_incompatible_pointer : ExtWarn<
31853185
"%select{assigning to|passing|returning|converting|initializing|sending|casting}2"
31863186
" %0 "
31873187
"%select{from|to parameter of type|from a function with result type|to type|"
3188-
"with an expression of type|to parameter of type|to type}2 %1">;
3188+
"with an expression of type|to parameter of type|to type}2 %1">,
3189+
InGroup<DiagGroup<"incompatible-pointer-types">>;
31893190
def ext_typecheck_convert_discards_qualifiers : ExtWarn<
31903191
"%select{assigning to|passing|returning|converting|initializing|sending|casting}2"
31913192
" %0 "

0 commit comments

Comments
 (0)