diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2018-10-03 14:34:18 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2018-10-03 17:51:35 -0400 |
commit | 8634679f82df75cf482b0c0814c2b3865da91d22 (patch) | |
tree | ad1a5d08b6d0ef8b6d5e0551cc8b01dfd69447b8 /gdb/guile/scm-value.c | |
parent | f35d5adea1cee8ce9141ad85a7e59d008c2e4d42 (diff) | |
download | binutils-8634679f82df75cf482b0c0814c2b3865da91d22.zip binutils-8634679f82df75cf482b0c0814c2b3865da91d22.tar.gz binutils-8634679f82df75cf482b0c0814c2b3865da91d22.tar.bz2 |
Remove struct keyword in range-based for
I get the following error with gcc 6.3.0:
/home/simark/src/binutils-gdb/gdb/dwarf2read.c: In function 'void read_func_scope(die_info*, dwarf2_cu*)':
/home/simark/src/binutils-gdb/gdb/dwarf2read.c:13838:12: error: types may not be defined in a for-range-declaration [-Werror]
for (struct symbol *sym : template_args)
^~~~~~
Removing the struct keyword fixes it.
gdb/ChangeLog:
* dwarf2read.c (read_func_scope): Remove struct keyword in
range-based for.
Diffstat (limited to 'gdb/guile/scm-value.c')
0 files changed, 0 insertions, 0 deletions