aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-tdep.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2015-10-22 09:46:29 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2015-10-22 09:47:44 -0400
commit3e45d68b7088df39d0520d1a92005cfdf4e2b922 (patch)
tree7c038154e4b7b7e0d574b988814ee07fe29e06f6 /gdb/rs6000-tdep.c
parent709476c3c595fb61f155ba453733809d3e76ed51 (diff)
downloadgdb-3e45d68b7088df39d0520d1a92005cfdf4e2b922.zip
gdb-3e45d68b7088df39d0520d1a92005cfdf4e2b922.tar.gz
gdb-3e45d68b7088df39d0520d1a92005cfdf4e2b922.tar.bz2
rs6000: Add cast for int to enum conversion
Fixes this error: /home/pedro/gdb/mygit/src/gdb/rs6000-tdep.c:3091:1: error: invalid conversion from ‘int’ to ‘bfd_architecture’ [-fpermissive] }; ^ /home/pedro/gdb/mygit/src/gdb/rs6000-tdep.c: In function ‘void powerpc_set_vector_abi(char*, int, cmd_list_element*)’: /home/pedro/gdb/mygit/src/gdb/rs6000-tdep.c:6063:28: error: invalid conversion from ‘int’ to ‘powerpc_vector_abi’ [-fpermissive] powerpc_vector_abi_global = vector_abi; ^ gdb/ChangeLog: * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r--gdb/rs6000-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index baf6b67..589b996 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -3144,7 +3144,7 @@ static struct variant variants[] =
{"rs2", "IBM POWER RS2", bfd_arch_rs6000,
bfd_mach_rs6k_rs2, &tdesc_rs6000},
- {0, 0, 0, 0, 0}
+ {0, 0, (enum bfd_architecture) 0, 0, 0}
};
/* Return the variant corresponding to architecture ARCH and machine number