2002-04-29 Roland McGrath <roland@frob.com>

* include/libc-symbols.h (link_warning): Use `unused' attribute.
This commit is contained in:
Roland McGrath 2002-04-29 07:46:42 +00:00
parent b74ea861cb
commit 13176c60a0

View File

@ -213,12 +213,13 @@
# define link_warning(symbol, msg) \
__make_section_unallocated (".gnu.warning." #symbol) \
static const char __evoke_link_warning_##symbol[] \
__attribute__ ((section (".gnu.warning." #symbol "\"\n\t#\""))) = msg;
__attribute__ ((unused, section (".gnu.warning." #symbol "\"\n\t#\""))) \
= msg;
# else
# define link_warning(symbol, msg) \
__make_section_unallocated (".gnu.warning." #symbol) \
static const char __evoke_link_warning_##symbol[] \
__attribute__ ((section (".gnu.warning." #symbol "\n\t#"))) = msg;
__attribute__ ((unused, section (".gnu.warning." #symbol "\n\t#"))) = msg;
# endif
# else /* Not ELF: a.out */
# ifdef HAVE_XCOFF