aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-pragma.c
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2003-07-19 13:10:17 +0000
committerGabriel Dos Reis <gdr@integrable-solutions.net>2003-07-19 13:10:17 +0000
commit90fdcaa86faf6fe199d42a0e8c932b6f3a1e170c (patch)
tree5f63b033ae33b75223a862c8205df6b3ba2eca48 /gcc/c-pragma.c
parentfa3da6ca1a34a336dbbb1e06c32d132246ce942e (diff)
* c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
* toplev.h (warning): Remove attribute. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@69585 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-pragma.c')
-rw-r--r--gcc/c-pragma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-pragma.c b/gcc/c-pragma.c
index bd53c806dd7..d74e6ff1f84 100644
--- a/gcc/c-pragma.c
+++ b/gcc/c-pragma.c
@@ -275,7 +275,8 @@ apply_pragma_weak (tree decl, tree value)
if (SUPPORTS_WEAK && DECL_EXTERNAL (decl) && TREE_USED (decl)
&& !DECL_WEAK (decl) /* don't complain about a redundant #pragma */
&& TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)))
- warning_with_decl (decl, "applying #pragma weak `%s' after first use results in unspecified behavior");
+ warning ("%Happlying #pragma weak '%D' after first use results "
+ "in unspecified behavior", &DECL_SOURCE_LOCATION (decl), decl);
declare_weak (decl);
}