From 13176c60a02a441d817f3ab26994538e2b18c111 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 29 Apr 2002 07:46:42 +0000 Subject: [PATCH] 2002-04-29 Roland McGrath * include/libc-symbols.h (link_warning): Use `unused' attribute. --- include/libc-symbols.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/libc-symbols.h b/include/libc-symbols.h index 11c87c84d2..901458a7b3 100644 --- a/include/libc-symbols.h +++ b/include/libc-symbols.h @@ -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