Remove struct keyword from range-based for loop
authorSimon Marchi <simon.marchi@ericsson.com>
Mon, 27 Feb 2017 19:09:34 +0000 (14:09 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 27 Feb 2017 19:09:34 +0000 (14:09 -0500)
commitd538e36decd5628c084dbd5a7de13719b8b92121
treeddd6c507145020128b3d2fe1a3bdae4ab3b38ab4
parent8362122330c97c8c4a15da4e7ba8aa29f0c11157
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.
gdb/ChangeLog
gdb/remote.c
This page took 0.024941 seconds and 4 git commands to generate.