Remove more "struct" keywords in range-based for loops
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 11 Jun 2018 02:33:37 +0000 (22:33 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 11 Jun 2018 02:34:08 +0000 (22:34 -0400)
commit71b73764977a3895b0dda3e7260eece7a8d3e60c
treefe1e3260dd69797ea2ff4765054b0b00e00844fb
parent65a68903e2294fcd1a5496a4fe467a5b28dc0f27
Remove more "struct" keywords in range-based for loops

GCC 6.3.0 produces this kind of errors:

  CXX    dwarf2read.o
/home/simark/src/binutils-gdb/gdb/dwarf2read.c: In function 'void process_cu_includes(dwarf2_per_objfile*)':
/home/simark/src/binutils-gdb/gdb/dwarf2read.c:10220:8: error: types may not be defined in a for-range-declaration [-Werror]
   for (struct dwarf2_per_cu_data *iter : dwarf2_per_objfile->just_read_cus)
        ^~~~~~

Removing the struct keyword makes it happy.

gdb/ChangeLog:

* dwarf2read.c (process_cu_includes): Remove struct keyword.
* serial.c (serial_interface_lookup): Remove struct keyword.
gdb/ChangeLog
gdb/dwarf2read.c
gdb/serial.c