diff options
author | Marek Polacek <polacek@redhat.com> | 2015-05-21 15:27:12 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2015-05-21 15:27:12 +0000 |
commit | 6b6dd1aa70d6e5fd5fe5d0ad6c397854d3580bc3 (patch) | |
tree | d797760c0014ad05e0f9141bc309b9853f465eb6 | |
parent | 4177264e09e997c54a58a714fde0588592a87c65 (diff) | |
download | gcc-6b6dd1aa70d6e5fd5fe5d0ad6c397854d3580bc3.zip gcc-6b6dd1aa70d6e5fd5fe5d0ad6c397854d3580bc3.tar.gz gcc-6b6dd1aa70d6e5fd5fe5d0ad6c397854d3580bc3.tar.bz2 |
* typeck.c (warn_args_num): Don't print "declare here" for builtins.
From-SVN: r223489
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 4 |
2 files changed, 6 insertions, 2 deletions
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 <polacek@redhat.com> + + * typeck.c (warn_args_num): Don't print "declare here" for builtins. + 2015-05-20 Jason Merrill <jason@redhat.com> * 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 { |