mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
2002-04-29 Roland McGrath <roland@frob.com>
* include/libc-symbols.h (link_warning): Use `unused' attribute.
This commit is contained in:
parent
b74ea861cb
commit
13176c60a0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user