Commit 6b6dd1aa by Marek Polacek Committed by Marek Polacek

* typeck.c (warn_args_num): Don't print "declare here" for builtins.

From-SVN: r223489
parent 4177264e
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> 2015-05-20 Jason Merrill <jason@redhat.com>
* pt.c (tsubst_decl) [VAR_DECL]: SET_DECL_IMPLICIT_INSTANTIATION * pt.c (tsubst_decl) [VAR_DECL]: SET_DECL_IMPLICIT_INSTANTIATION
......
...@@ -3598,8 +3598,8 @@ warn_args_num (location_t loc, tree fndecl, bool too_many_p) ...@@ -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 many arguments to function %q#D")
: G_("too few arguments to function %q#D"), : G_("too few arguments to function %q#D"),
fndecl); fndecl);
inform (DECL_SOURCE_LOCATION (fndecl), if (!DECL_IS_BUILTIN (fndecl))
"declared here"); inform (DECL_SOURCE_LOCATION (fndecl), "declared here");
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment