diff options
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/Basic/DiagnosticKinds.def | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticKinds.def b/include/clang/Basic/DiagnosticKinds.def index 591e3059a8..0f31c922cf 100644 --- a/include/clang/Basic/DiagnosticKinds.def +++ b/include/clang/Basic/DiagnosticKinds.def @@ -767,6 +767,8 @@ DIAG(ext_typecheck_assign_incompatible_pointer, WARNING, "incompatible pointer types assigning '%1' to '%0'") DIAG(ext_typecheck_assign_discards_qualifiers, WARNING, "assigning '%1' to '%0' discards qualifiers") +DIAG(ext_typecheck_assign_pointer_void_func, EXTENSION, + "assigning '%1' to '%0' converts between void* and function pointer") DIAG(err_typecheck_array_not_modifiable_lvalue, ERROR, "array type '%0' is not assignable") DIAG(err_typecheck_non_object_not_modifiable_lvalue, ERROR, @@ -791,6 +793,9 @@ DIAG(ext_typecheck_passing_incompatible_pointer, WARNING, "incompatible pointer types passing '%0' to function expecting '%1'") DIAG(ext_typecheck_passing_pointer_int, WARNING, "incompatible types passing '%1' to function expecting '%0'") +DIAG(ext_typecheck_passing_pointer_void_func, EXTENSION, + "passing '%1' to function expecting '%0' converts between void*" + " and function pointer") DIAG(ext_typecheck_passing_discards_qualifiers, WARNING, "passing '%0' to '%1' discards qualifiers") DIAG(err_typecheck_sending_incompatible, ERROR, @@ -799,6 +804,9 @@ DIAG(ext_typecheck_sending_incompatible_pointer, WARNING, "incompatible pointer types passing '%0' to method expecting '%1'") DIAG(ext_typecheck_sending_pointer_int, WARNING, "incompatible types passing '%1' to method expecting '%0'") +DIAG(ext_typecheck_sending_pointer_void_func, EXTENSION, + "sending '%1' to method expecting '%0' converts between void*" + " and function pointer") DIAG(err_typecheck_cond_expect_scalar, ERROR, "used type '%0' where arithmetic or pointer type is required") DIAG(err_typecheck_expect_scalar_operand, ERROR, @@ -909,6 +917,9 @@ DIAG(err_typecheck_return_incompatible, ERROR, "incompatible type returning '%1', expected '%0'") DIAG(ext_typecheck_return_pointer_int, EXTENSION, "incompatible type returning '%1', expected '%0'") +DIAG(ext_typecheck_return_pointer_void_func, EXTENSION, + "returning '%1' to from function expecting '%0' converts between void*" + " and function pointer") DIAG(ext_typecheck_return_incompatible_pointer, EXTENSION, "incompatible pointer type returning '%1', expected '%0'") DIAG(ext_typecheck_return_discards_qualifiers, EXTENSION, |