aboutsummaryrefslogtreecommitdiff
path: root/gdb/unittests/basic_string_view
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2018-07-21 22:21:57 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2018-07-21 22:23:33 -0400
commit17cbafdbbef78d7e05ade53d4cc867fa8ac2f432 (patch)
tree38dba452d4deebca5321a41fa7a2f11a2181a1a8 /gdb/unittests/basic_string_view
parentdcc0660f04bb74948299fb33c98620cfd1ceabb2 (diff)
downloadgdb-17cbafdbbef78d7e05ade53d4cc867fa8ac2f432.zip
gdb-17cbafdbbef78d7e05ade53d4cc867fa8ac2f432.tar.gz
gdb-17cbafdbbef78d7e05ade53d4cc867fa8ac2f432.tar.bz2
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.
Diffstat (limited to 'gdb/unittests/basic_string_view')
0 files changed, 0 insertions, 0 deletions