about summary refs log tree commit diff
path: root/sysdeps/arm
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@redhat.com>2016-03-15 23:16:47 -0400
committerCarlos O'Donell <carlos@redhat.com>2016-03-15 23:23:24 -0400
commitb4f518ecfad09fc4279ea26a565332835e403dab (patch)
tree56d39c0f69cafc6afc02cc2e81292d37f69cb0b9 /sysdeps/arm
parent089b772f98afd9eb6264c6489bc96a30bf6af4ac (diff)
downloadglibc-b4f518ecfad09fc4279ea26a565332835e403dab.tar.gz
glibc-b4f518ecfad09fc4279ea26a565332835e403dab.tar.xz
glibc-b4f518ecfad09fc4279ea26a565332835e403dab.zip
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.
Diffstat (limited to 'sysdeps/arm')
-rw-r--r--sysdeps/arm/dl-machine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
index 0905adda7a..60eee00b5b 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);