diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-02-27 14:09:34 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-02-27 14:09:34 -0500 |
commit | d538e36decd5628c084dbd5a7de13719b8b92121 (patch) | |
tree | ddd6c507145020128b3d2fe1a3bdae4ab3b38ab4 /mkdep | |
parent | 8362122330c97c8c4a15da4e7ba8aa29f0c11157 (diff) | |
download | gdb-d538e36decd5628c084dbd5a7de13719b8b92121.zip gdb-d538e36decd5628c084dbd5a7de13719b8b92121.tar.gz gdb-d538e36decd5628c084dbd5a7de13719b8b92121.tar.bz2 |
Remove struct keyword from range-based for loop
The previous patch introduced this error with recent-ish GCCs:
../../binutils-gdb/gdb/remote.c: In function ‘int remote_add_target_side_condition(gdbarch*, bp_target_info*, char*, char*)’:
../../binutils-gdb/gdb/remote.c:9668:8: error: types may not be defined in a for-range-declaration [-Werror]
for (struct agent_expr *aexpr : bp_tgt->conditions)
^~~~~~
Removing the struct keyword fixes the error.
gdb/ChangeLog:
* remote.c (remote_add_target_side_condition): Remove "struct"
keyword from range-based for loop.
Diffstat (limited to 'mkdep')
0 files changed, 0 insertions, 0 deletions