OSDN Git Service

* method.c (synthesize_method): Add addtional arg to warning call.
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Jun 2005 20:02:26 +0000 (20:02 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Jun 2005 20:02:26 +0000 (20:02 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100511 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/method.c

index 22e0833..8b68706 100644 (file)
@@ -1,5 +1,7 @@
 2005-06-02  Nathan Sidwell  <nathan@codesourcery.com>
 
+       * 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
index b64a31d..ac85bf4 100644 (file)
@@ -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);
 }