mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 11:00:01 +08:00
Shadowing fix in gdbscm_frame_read_var
-Wshadow=local pointed out that the shadowing in gdbscm_frame_read_var means that the ultimate call to read_var_value will always be passed block==NULL. The fix is to remove the inner declaration. gdb/ChangeLog 2018-10-04 Tom Tromey <tom@tromey.com> * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner declaration of "block".
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2018-10-04 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
|
||||||
|
declaration of "block".
|
||||||
|
|
||||||
2018-10-04 Tom Tromey <tom@tromey.com>
|
2018-10-04 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* common/filestuff.c (fdwalk): Remove inner declaration of
|
* common/filestuff.c (fdwalk): Remove inner declaration of
|
||||||
|
@ -878,7 +878,6 @@ gdbscm_frame_read_var (SCM self, SCM symbol_scm, SCM rest)
|
|||||||
}
|
}
|
||||||
else if (scm_is_string (symbol_scm))
|
else if (scm_is_string (symbol_scm))
|
||||||
{
|
{
|
||||||
const struct block *block = NULL;
|
|
||||||
struct gdb_exception except = exception_none;
|
struct gdb_exception except = exception_none;
|
||||||
|
|
||||||
if (! SCM_UNBNDP (block_scm))
|
if (! SCM_UNBNDP (block_scm))
|
||||||
|
Reference in New Issue
Block a user