From b4f518ecfad09fc4279ea26a565332835e403dab Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Tue, 15 Mar 2016 23:16:47 -0400 Subject: Fix building glibc master with NDEBUG and --with-cpu. When building on i686, x86_64, and arm, and with NDEBUG, or --with-cpu there are various variables and functions which are unused based on these settings. This patch marks all such variables with __attribute__((unused)) to avoid the compiler warnings when building with the aformentioned options. --- sysdeps/arm/dl-machine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/arm') diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h index 0905add..60eee00 100644 --- a/sysdeps/arm/dl-machine.h +++ b/sysdeps/arm/dl-machine.h @@ -581,7 +581,7 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc, # ifdef RESOLVE_CONFLICT_FIND_MAP case R_ARM_TLS_DESC: { - struct tlsdesc volatile *td = + struct tlsdesc volatile *td __attribute__ ((unused)) = (struct tlsdesc volatile *) reloc_addr; RESOLVE_CONFLICT_FIND_MAP (map, reloc_addr); -- cgit v1.1