From: Marek Polacek Date: Thu, 21 May 2015 15:27:12 +0000 (+0000) Subject: * typeck.c (warn_args_num): Don't print "declare here" for builtins. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b6dd1aa70d6e5fd5fe5d0ad6c397854d3580bc3;p=gcc.git * typeck.c (warn_args_num): Don't print "declare here" for builtins. From-SVN: r223489 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b4c60b651cc..64603142531 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2015-05-21 Marek Polacek + + * typeck.c (warn_args_num): Don't print "declare here" for builtins. + 2015-05-20 Jason Merrill * pt.c (tsubst_decl) [VAR_DECL]: SET_DECL_IMPLICIT_INSTANTIATION diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index ba99c302cde..fef4f4f1304 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -3598,8 +3598,8 @@ warn_args_num (location_t loc, tree fndecl, bool too_many_p) ? G_("too many arguments to function %q#D") : G_("too few arguments to function %q#D"), fndecl); - inform (DECL_SOURCE_LOCATION (fndecl), - "declared here"); + if (!DECL_IS_BUILTIN (fndecl)) + inform (DECL_SOURCE_LOCATION (fndecl), "declared here"); } else {