From 6b6dd1aa70d6e5fd5fe5d0ad6c397854d3580bc3 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Thu, 21 May 2015 15:27:12 +0000 Subject: * typeck.c (warn_args_num): Don't print "declare here" for builtins. From-SVN: r223489 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/typeck.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b4c60b6..6460314 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 ba99c30..fef4f4f 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 { -- cgit v1.1