From d6e2f671f716a25188d83350fa517ae9ea29f70f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 14 Jun 1995 17:15:57 +0000 Subject: Wed Jun 14 03:45:24 1995 Roland McGrath * stdio/stdio.h (__validfp): Use ({...}) rather than a comma expression, to avoid gcc's "value computed is not used" warning. * libc-symbols.h (_elf_set_element): Give the set-element variable an `unused' attribute. * hurd/hurd/threadvar.h (__hurd_threadvar_location): Declare with __attribute__ ((__const__)). * hurd/hurd/signal.h (_hurd_self_sigstate): Likewise. * hurd/hurd/userlink.h (_hurd_userlink_link): Properly set LINK->resource.next->resource.prevp when appropriate, not LINK->resource.next->thread.prevp!!! --- libc-symbols.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc-symbols.h') diff --git a/libc-symbols.h b/libc-symbols.h index 1782737c93..f4d82a6e72 100644 --- a/libc-symbols.h +++ b/libc-symbols.h @@ -181,11 +181,11 @@ Cambridge, MA 02139, USA. */ because it will need to be relocated at run time anyway. */ #define _elf_set_element(set, symbol) \ static const void *__elf_set_##set##_element_##symbol##__ \ - __attribute__ ((section (#set))) = &(symbol) + __attribute__ ((unused, section (#set))) = &(symbol) #else #define _elf_set_element(set, symbol) \ static const void *const __elf_set_##set##_element_##symbol##__ \ - __attribute__ ((section (#set))) = &(symbol) + __attribute__ ((unused, section (#set))) = &(symbol) #endif /* Define SET as a symbol set. This may be required (it is in a.out) to -- cgit 1.4.1