call.c (diagnostic_fn_t): New.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sat, 16 Jul 2005 14:20:45 +0000 (14:20 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sat, 16 Jul 2005 14:20:45 +0000 (14:20 +0000)
* call.c (diagnostic_fn_t): New.
(build_temp, convert_like_real): Use diagnostic_fn_t.

From-SVN: r102089

gcc/cp/ChangeLog
gcc/cp/call.c

index 6e059778988fb5c5a3c617db78a2cca72c6a053e..6ebdca92a8e49a800a216f07409b94ee94e7fdac 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * call.c (diagnostic_fn_t): New.
+       (build_temp, convert_like_real): Use diagnostic_fn_t.
+
 2005-07-15  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/22204
index 1035f88441a468a486cd5c7659038439a9b99557..21201cf7f0a4bc621cbd5a9857d8c538b1b6433c 100644 (file)
@@ -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