Shadowing fix in gdbscm_frame_read_var
authorTom Tromey <tom@tromey.com>
Sun, 22 Apr 2018 16:46:03 +0000 (10:46 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 5 Oct 2018 04:51:48 +0000 (22:51 -0600)
commitd951f98b3c8bf202571327d8679ae30ca1da9fdc
treecdcd3063a1006985782dcf79db15423c61949e31
parentb8c888478d517a39d8b0104857d573e47620a3d1
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".
gdb/ChangeLog
gdb/guile/scm-frame.c