aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cp/ChangeLog2
-rw-r--r--gcc/cp/method.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 22e0833..8b68706 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index b64a31d..ac85bf4 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);
}