diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2005-06-02 20:02:26 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2005-06-02 20:02:26 +0000 |
commit | c449e20709e969adcfe9e0a758fa9698d8949878 (patch) | |
tree | f331d0a16d1af97899df086f159ae769ad030765 /gcc | |
parent | d24959df23a78d5bf0fc0b317b23824b75a9926c (diff) | |
download | gcc-c449e20709e969adcfe9e0a758fa9698d8949878.zip gcc-c449e20709e969adcfe9e0a758fa9698d8949878.tar.gz gcc-c449e20709e969adcfe9e0a758fa9698d8949878.tar.bz2 |
* method.c (synthesize_method): Add addtional arg to warning call.
From-SVN: r100511
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/cp/method.c | 2 |
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); } |