From 73137818d2011991f3e14f35bb496bdc2857e138 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 2 Jun 2005 20:02:26 +0000 Subject: [PATCH] * method.c (synthesize_method): Add addtional arg to warning call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100511 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 2 ++ gcc/cp/method.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 + * 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); } -- 2.7.4