Remove struct keyword in range-based for-loop
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 20 Jun 2018 16:40:54 +0000 (12:40 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 20 Jun 2018 16:40:54 +0000 (12:40 -0400)
commit19f3f25f370fbf7f5c2aa12a909d57f6e38ee2da
tree52d18a06308d12c307724023fb1641fd250cb4b2
parent6077de0645ce12a9c4e99f8839a846b42a535b0a
Remove struct keyword in range-based for-loop

Fix this with gcc 6.3.0, and make the loop variable const while at it:

/home/simark/src/binutils-gdb/gdb/record-full.c: In member function 'virtual int record_full_target::insert_breakpoint(gdbarch*, bp_target_info*)':
/home/simark/src/binutils-gdb/gdb/record-full.c:1789:8: error: types may not be defined in a for-range-declaration [-Werror]
   for (struct record_full_breakpoint &bp : record_full_breakpoints)

gdb/ChangeLog:

* record-full.c (record_full_target::insert_breakpoint): Remove
"struct" keyword, add const.
gdb/ChangeLog
gdb/record-full.c