diff options
author | Adam Stylinski <adam.stylinski@etegent.com> | 2017-12-07 12:51:03 -0500 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-12-07 17:58:37 +0000 |
commit | 23a8d1862b7e5b95f0fe9d724c6be326e545e6d1 (patch) | |
tree | bfde946df9df0c9c269942249b7c082db0b632fc /gas | |
parent | a8806230241d201f808d856eaae4d44088117b0c (diff) | |
download | gdb-23a8d1862b7e5b95f0fe9d724c6be326e545e6d1.zip gdb-23a8d1862b7e5b95f0fe9d724c6be326e545e6d1.tar.gz gdb-23a8d1862b7e5b95f0fe9d724c6be326e545e6d1.tar.bz2 |
Fix build with g++ 6.3.1
With g++ 6.3.1:
target-descriptions.c: In member function ‘virtual void
print_c_tdesc::visit_pre(const target_desc*)’:
target-descriptions.c:1836:16: error: types may not be defined in a
for-range-declaration [-Werror]
for (const struct bfd_arch_info *compatible : e->compatible)
^~~~~~
I think at some point the forward declaration of this struct had been
removed and declared as a typedef. This fixes that.
gdb/ChangeLog:
2017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
PR c++/21222
* target-descriptions.c (print_c_tdesc::visit_pre): Change type of
range-for variable.
Diffstat (limited to 'gas')
0 files changed, 0 insertions, 0 deletions