aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-alpha.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2013-10-09 19:40:04 +0000
committerRoland McGrath <roland@gnu.org>2013-10-09 19:40:04 +0000
commit9a757e4d208a78cb1c2e51d7804f5214bee8d50f (patch)
tree4f365b986114f904a5bb1b4e77db89c06a9601ca /bfd/elf64-alpha.c
parent677e5a92b1e998e33fbe216f4cbb52cc88b74bca (diff)
downloadgdb-9a757e4d208a78cb1c2e51d7804f5214bee8d50f.zip
gdb-9a757e4d208a78cb1c2e51d7804f5214bee8d50f.tar.gz
gdb-9a757e4d208a78cb1c2e51d7804f5214bee8d50f.tar.bz2
bfd/
* elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Cast switch expression to int to silence over-eager compiler warnings.
Diffstat (limited to 'bfd/elf64-alpha.c')
-rw-r--r--bfd/elf64-alpha.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c
index b705050..289164f 100644
--- a/bfd/elf64-alpha.c
+++ b/bfd/elf64-alpha.c
@@ -1,6 +1,6 @@
/* Alpha specific support for 64-bit ELF
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
- 2006, 2007, 2008, 2009, 2010, 2011, 2012
+ 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
Free Software Foundation, Inc.
Contributed by Richard Henderson <rth@tamu.edu>.
@@ -3590,7 +3590,9 @@ elf64_alpha_relax_tls_get_addr (struct alpha_relax_info *info, bfd_vma symval,
use_gottprel = FALSE;
new_symndx = is_gd ? ELF64_R_SYM (irel->r_info) : STN_UNDEF;
- switch (!dynamic && !info->link_info->shared)
+ /* Some compilers warn about a Boolean-looking expression being
+ used in a switch. The explicit cast silences them. */
+ switch ((int) (!dynamic && !info->link_info->shared))
{
case 1:
{