From: Nathan Sidwell Date: Thu, 2 Jun 2005 20:02:26 +0000 (+0000) Subject: * method.c (synthesize_method): Add addtional arg to warning call. X-Git-Tag: misc/cutover-cvs2svn~2688 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c449e20709e969adcfe9e0a758fa9698d8949878;p=thirdparty%2Fgcc.git * method.c (synthesize_method): Add addtional arg to warning call. From-SVN: r100511 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 22e08335d7fe..8b687062ea79 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 2005-06-02 Nathan Sidwell + * method.c (synthesize_method): Add addtional arg to warning call. + PR c++/21280 * Make-lang.in (method.o): Add diagnostic.h * decl.c (start_preparsed_function): Use decl's location for file diff --git a/gcc/cp/method.c b/gcc/cp/method.c index b64a31d3fd0a..ac85bf435d50 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -806,7 +806,7 @@ synthesize_method (tree fndecl) pop_deferring_access_checks (); if (error_count != errorcount || warning_count != warningcount) - warning ("%Hsynthesized method %qD first required here ", + warning (0, "%Hsynthesized method %qD first required here ", &input_location, fndecl); }