mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +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) \
|
# define link_warning(symbol, msg) \
|
||||||
__make_section_unallocated (".gnu.warning." #symbol) \
|
__make_section_unallocated (".gnu.warning." #symbol) \
|
||||||
static const char __evoke_link_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
|
# else
|
||||||
# define link_warning(symbol, msg) \
|
# define link_warning(symbol, msg) \
|
||||||
__make_section_unallocated (".gnu.warning." #symbol) \
|
__make_section_unallocated (".gnu.warning." #symbol) \
|
||||||
static const char __evoke_link_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
|
# endif
|
||||||
# else /* Not ELF: a.out */
|
# else /* Not ELF: a.out */
|
||||||
# ifdef HAVE_XCOFF
|
# ifdef HAVE_XCOFF
|
||||||
|
Loading…
Reference in New Issue
Block a user