From: Kaveh R. Ghazi Date: Sat, 16 Jul 2005 14:20:45 +0000 (+0000) Subject: call.c (diagnostic_fn_t): New. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72e78bf3173e5519bbb32313bba263441b65a7c4;p=gcc.git call.c (diagnostic_fn_t): New. * call.c (diagnostic_fn_t): New. (build_temp, convert_like_real): Use diagnostic_fn_t. From-SVN: r102089 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6e059778988..6ebdca92a8e 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2005-07-16 Kaveh R. Ghazi + + * call.c (diagnostic_fn_t): New. + (build_temp, convert_like_real): Use diagnostic_fn_t. + 2005-07-15 Mark Mitchell PR c++/22204 diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 1035f88441a..21201cf7f0a 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -194,7 +194,8 @@ static void add_candidates (tree, tree, tree, bool, tree, tree, int, struct z_candidate **); static conversion *merge_conversion_sequences (conversion *, conversion *); static bool magic_varargs_p (tree); -static tree build_temp (tree, tree, int, void (**)(const char *, ...)); +typedef void (*diagnostic_fn_t) (const char *, ...) ATTRIBUTE_GCC_CXXDIAG(1,2); +static tree build_temp (tree, tree, int, diagnostic_fn_t *); static void check_constructor_callable (tree, tree); /* Returns nonzero iff the destructor name specified in NAME @@ -4105,7 +4106,7 @@ check_constructor_callable (tree type, tree expr) static tree build_temp (tree expr, tree type, int flags, - void (**diagnostic_fn)(const char *, ...)) + diagnostic_fn_t *diagnostic_fn) { int savew, savee; @@ -4140,7 +4141,7 @@ convert_like_real (conversion *convs, tree expr, tree fn, int argnum, bool c_cast_p) { tree totype = convs->type; - void (*diagnostic_fn)(const char *, ...) ATTRIBUTE_GCC_CXXDIAG(1,2); + diagnostic_fn_t diagnostic_fn; if (convs->bad_p && convs->kind != ck_user