diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-01 21:12:49 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-01 21:12:49 +0000 |
commit | 311e273f46eaf83a44a62e77c6563af72f75f501 (patch) | |
tree | 27650273c8f0b86523ed04df8a02ee77ae475ec9 /gcc/cp/decl.c | |
parent | 32324da9c40cb8864d8db6e025108aba2a2d3385 (diff) | |
download | ppe42-gcc-311e273f46eaf83a44a62e77c6563af72f75f501.tar.gz ppe42-gcc-311e273f46eaf83a44a62e77c6563af72f75f501.zip |
* decl.c (duplicate_decls): Convert use of warning_with_decl() to
that of warning().
(start_decl): Likewise.
(start_function): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63625 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index cd15f25315d..b2c2577fa49 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -2981,19 +2981,19 @@ duplicate_decls (tree newdecl, tree olddecl) && DECL_UNINLINABLE (olddecl) && lookup_attribute ("noinline", DECL_ATTRIBUTES (olddecl))) { - warning_with_decl (newdecl, - "function `%s' redeclared as inline"); - warning_with_decl (olddecl, - "previous declaration of function `%s' with attribute noinline"); + warning ("%Hfunction '%D' redeclared as inline", + &DECL_SOURCE_LOCATION (newdecl), newdecl); + warning ("%Hprevious declaration of '%D' with attribute noinline", + &DECL_SOURCE_LOCATION (olddecl), olddecl); } else if (DECL_DECLARED_INLINE_P (olddecl) && DECL_UNINLINABLE (newdecl) && lookup_attribute ("noinline", DECL_ATTRIBUTES (newdecl))) { - warning_with_decl (newdecl, - "function `%s' redeclared with attribute noinline"); - warning_with_decl (olddecl, - "previous declaration of function `%s' was inline"); + warning ("%Hfunction '%D' redeclared with attribute noinline", + &DECL_SOURCE_LOCATION (newdecl), newdecl); + warning ("%Hprevious declaration of '%D' was inline", + &DECL_SOURCE_LOCATION (olddecl), olddecl); } } @@ -7090,8 +7090,8 @@ start_decl (tree declarator, && DECL_DECLARED_INLINE_P (decl) && DECL_UNINLINABLE (decl) && lookup_attribute ("noinline", DECL_ATTRIBUTES (decl))) - warning_with_decl (decl, - "inline function `%s' given attribute noinline"); + warning ("%Hinline function '%D' given attribute noinline", + &DECL_SOURCE_LOCATION (decl), decl); if (context && COMPLETE_TYPE_P (complete_type (context))) { @@ -13434,8 +13434,8 @@ start_function (tree declspecs, tree declarator, tree attrs, int flags) if (DECL_DECLARED_INLINE_P (decl1) && lookup_attribute ("noinline", attrs)) - warning_with_decl (decl1, - "inline function `%s' given attribute noinline"); + warning ("%Hinline function '%D' given attribute noinline", + &DECL_SOURCE_LOCATION (decl1), decl1); if (DECL_MAYBE_IN_CHARGE_CONSTRUCTOR_P (decl1)) /* This is a constructor, we must ensure that any default args |