1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

Wed Jun 14 03:45:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>

* 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!!!
This commit is contained in:
Roland McGrath
1995-06-14 17:15:57 +00:00
parent 5e75b23212
commit d6e2f671f7
5 changed files with 36 additions and 6 deletions

View File

@ -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