va_end (ap);
}
-void
-wr_warning (const struct where *wh, const char *format, ...)
-{
- va_list ap;
- va_start (ap, format);
- wr_vwarning (wh, format, ap);
- va_end (ap);
-}
-
void
wr_message (unsigned long category, const struct where *wh,
const char *format, ...)
}
}
-std::ostream &
+static std::ostream &
wr_warning ()
{
++error_count;
return wr_warning ();
}
-std::ostream &
-wr_warning (where const &wh)
-{
- return wr_warning () << wh << ": ";
-}
-
std::ostream &
wr_error (where const &wh)
{
extern void wr_error (const struct where *wh, const char *format, ...)
__attribute__ ((format (printf, 2, 3)));
-extern void wr_warning (const struct where *wh, const char *format, ...)
- __attribute__ ((format (printf, 2, 3)));
-
extern void wr_message (unsigned long category, const struct where *wh,
const char *format, ...)
__attribute__ ((format (printf, 3, 4)));
/* Accepted (warning) messages, that are turned into errors. */
extern struct message_criteria error_criteria;
-std::ostream &wr_warning (where const &wh);
-std::ostream &wr_warning ();
std::ostream &wr_error (where const &wh);
std::ostream &wr_error ();
std::ostream &wr_message (where const &wh, message_category cat);
&& ELF64_ST_TYPE (symbol->st_info) == STT_SECTION)
{
if (sym_value != 0)
- wr_warning (reloc_where)
+ wr_message (reloc_where, mc_reloc | mc_impact_1)
<< "relocation formed using STT_SECTION symbol with non-zero value."
<< std::endl;