summaryrefslogtreecommitdiffstats
path: root/contrib/binutils
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2014-12-29 00:10:43 +0000
committerdim <dim@FreeBSD.org>2014-12-29 00:10:43 +0000
commitf32df513126782b430607300461499c7828a9150 (patch)
tree02e7cb48be523c2667234bcc6ee1805f7a07bdd0 /contrib/binutils
parent5d28efeac7cbfe963a7c04dd85c8b2fde314c7d4 (diff)
downloadFreeBSD-src-f32df513126782b430607300461499c7828a9150.zip
FreeBSD-src-f32df513126782b430607300461499c7828a9150.tar.gz
In contrib/binutils/bfd/elf32-ppc.c, avoid warnings about case values
not being in the enumerated type 'enum elf_ppc_reloc_type', by casting the switch argument to int. MFC after: 3 days
Diffstat (limited to 'contrib/binutils')
-rw-r--r--contrib/binutils/bfd/elf32-ppc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/binutils/bfd/elf32-ppc.c b/contrib/binutils/bfd/elf32-ppc.c
index 31c90df..0441fe2 100644
--- a/contrib/binutils/bfd/elf32-ppc.c
+++ b/contrib/binutils/bfd/elf32-ppc.c
@@ -6185,7 +6185,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
howto = NULL;
if (r_type < R_PPC_max)
howto = ppc_elf_howto_table[r_type];
- switch (r_type)
+ switch ((int) r_type)
{
default:
(*_bfd_error_handler)
OpenPOWER on IntegriCloud