[Bug gdb/23469] Compilation warning about struct other_sections in symfile.c using GCC 6.3.0
cvs-commit at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Tue Jul 31 16:55:00 GMT 2018
https://sourceware.org/bugzilla/show_bug.cgi?id=23469
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The gdb-8.2-branch branch has been updated by Eli Zaretskii
<eliz@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=599849befcc9a03584c7c03e65e5d5cf7ea0e4e8
commit 599849befcc9a03584c7c03e65e5d5cf7ea0e4e8
Author: Simon Marchi <simon.marchi@polymtl.ca>
Date: Fri Jul 13 22:06:34 2018 -0400
Remove struct keyword in range-based for loop
PR gdb/23469
Fix this with gcc 6.3.0:
/home/simark/src/binutils-gdb/gdb/symfile.c: In function 'void
set_objfile_default_section_offset(objfile*, const section_addr_info&,
CORE_ADDR)':
/home/simark/src/binutils-gdb/gdb/symfile.c:2114:14: error: types may not
be defined in a for-range-declaration [-Werror]
for (const struct other_sections *objf_sect : objf_addrs_sorted)
^~~~~~
gdb/ChangeLog:
* symfile.c (set_objfile_default_section_offset): Remove struct
keyword.
(cherry picked from commit ff27d0737ef0c9433a6a7c83c1e678ac57a27699)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list