eliz at gnu dot org
2018-07-31 11:21:14 UTC
https://sourceware.org/bugzilla/show_bug.cgi?id=23469
Bug ID: 23469
Summary: Compilation warning about struct other_sections in
symfile.c using GCC 6.3.0
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: eliz at gnu dot org
Target Milestone: ---
Compiling GDB 8.1.90 with GCC 6.3.0 on MinGW causes this warning:
CXX symfile.o
symfile.c: In function 'void set_objfile_default_section_offset(objfile*,
const section_addr_info&, CORE_ADDR)':
symfile.c:2114:14: warning: types may not be defined in a
for-range-declaration
for (const struct other_sections *objf_sect : objf_addrs_sorted)
^~~~~~
It turns out this has been fixed on master already, so the proposed solution is
to cherry-pick that commit (ff27d0737ef0) to the GDB 8.2 branch. See
https://www.sourceware.org/ml/gdb-patches/2018-07/msg00755.html
Bug ID: 23469
Summary: Compilation warning about struct other_sections in
symfile.c using GCC 6.3.0
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: eliz at gnu dot org
Target Milestone: ---
Compiling GDB 8.1.90 with GCC 6.3.0 on MinGW causes this warning:
CXX symfile.o
symfile.c: In function 'void set_objfile_default_section_offset(objfile*,
const section_addr_info&, CORE_ADDR)':
symfile.c:2114:14: warning: types may not be defined in a
for-range-declaration
for (const struct other_sections *objf_sect : objf_addrs_sorted)
^~~~~~
It turns out this has been fixed on master already, so the proposed solution is
to cherry-pick that commit (ff27d0737ef0) to the GDB 8.2 branch. See
https://www.sourceware.org/ml/gdb-patches/2018-07/msg00755.html
--
You are receiving this mail because:
You are on the CC list for the bug.
You are receiving this mail because:
You are on the CC list for the bug.