From: Roland McGrath Date: Mon, 29 Apr 2002 07:46:42 +0000 (+0000) Subject: 2002-04-29 Roland McGrath X-Git-Tag: upstream/2.30~21779 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13176c60a02a441d817f3ab26994538e2b18c111;p=external%2Fglibc.git 2002-04-29 Roland McGrath * include/libc-symbols.h (link_warning): Use `unused' attribute. --- diff --git a/include/libc-symbols.h b/include/libc-symbols.h index 11c87c8..901458a 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