* c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
* toplev.h (warning): Remove attribute.
From-SVN: r69585
2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
+ * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
+ * toplev.h (warning): Remove attribute.
+
+2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
* c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
(pop_label_level): Likewise.
(duplicate_decls): Likewise.
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);
}
#endif
extern void internal_error (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2)
ATTRIBUTE_NORETURN;
-extern void warning (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2);
+extern void warning (const char *, ...);
extern void error (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2);
extern void fatal_error (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2)
ATTRIBUTE_NORETURN;