Fix -Wunused-variable warnings related to conditional compilation
authorSimon Marchi <simon.marchi@polymtl.ca>
Sun, 22 Jul 2018 02:21:57 +0000 (22:21 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 22 Jul 2018 02:23:33 +0000 (22:23 -0400)
commit17cbafdbbef78d7e05ade53d4cc867fa8ac2f432
tree38dba452d4deebca5321a41fa7a2f11a2181a1a8
parentdcc0660f04bb74948299fb33c98620cfd1ceabb2
Fix -Wunused-variable warnings related to conditional compilation

Some variables are not used when !HAVE_ELF, so avoid declaring them in
that case.

gdb/ChangeLog:

* arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
attr_profile in HAVE_ELF.
* rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
HAVE_ELF.
gdb/ChangeLog
gdb/arm-tdep.c
gdb/rs6000-tdep.c