summary refs log tree commit diff
path: root/include/libc-symbols.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-04-29 07:46:42 +0000
committerRoland McGrath <roland@gnu.org>2002-04-29 07:46:42 +0000
commit13176c60a02a441d817f3ab26994538e2b18c111 (patch)
tree7c51f0e8c75d594f46ddb99a12380032502fc095 /include/libc-symbols.h
parentb74ea861cbd27f360e46190ac760d1300c737bc8 (diff)
downloadglibc-13176c60a02a441d817f3ab26994538e2b18c111.tar.gz
glibc-13176c60a02a441d817f3ab26994538e2b18c111.tar.xz
glibc-13176c60a02a441d817f3ab26994538e2b18c111.zip
2002-04-29 Roland McGrath <roland@frob.com>
	* include/libc-symbols.h (link_warning): Use `unused' attribute.
Diffstat (limited to 'include/libc-symbols.h')
-rw-r--r--include/libc-symbols.h5
1 files 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