mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
Mark lazy tlsdesc helper functions unused to avoid warnings
These static functions are not needed if a target does not do lazy tlsdesc initialization. * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused. (_dl_tlsdesc_wake_up_held_fixups): Likewise.
This commit is contained in:
parent
43ddff2e36
commit
0cc5b022f8
@ -1,3 +1,8 @@
|
||||
2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
|
||||
|
||||
* elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
|
||||
(_dl_tlsdesc_wake_up_held_fixups): Likewise.
|
||||
|
||||
2017-11-02 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
|
||||
|
@ -137,6 +137,7 @@ _dl_make_tlsdesc_dynamic (struct link_map *map, size_t ti_offset)
|
||||
avoid introducing such dependencies. */
|
||||
|
||||
static int
|
||||
__attribute__ ((unused))
|
||||
_dl_tlsdesc_resolve_early_return_p (struct tlsdesc volatile *td, void *caller)
|
||||
{
|
||||
if (caller != atomic_load_relaxed (&td->entry))
|
||||
@ -155,6 +156,7 @@ _dl_tlsdesc_resolve_early_return_p (struct tlsdesc volatile *td, void *caller)
|
||||
}
|
||||
|
||||
static void
|
||||
__attribute__ ((unused))
|
||||
_dl_tlsdesc_wake_up_held_fixups (void)
|
||||
{
|
||||
__rtld_lock_unlock_recursive (GL(dl_load_lock));
|
||||
|
Loading…
Reference in New Issue
Block a user