Fix -Wshadow error in ada-valprint.c
authorJoel Brobecker <brobecker@gnat.com>
Thu, 29 Mar 2012 18:50:21 +0000 (18:50 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 29 Mar 2012 18:50:21 +0000 (18:50 +0000)
commit6c88661cd473bf1e78bb996e8bcf0a00c7499097
treee947cee548a99ff1c180910610b252eeac451a70
parent4e5c77fe1ac64db7550f09c442563620fb1e7080
Fix -Wshadow error in ada-valprint.c

gdb/ChangeLog:

        * ada-valprint.c (ada_val_print_1): Move the code handling
        TYPE_CODE_ENUM inside its own lexical block.  Declare
        variables len and val there, instead of in the function's
        top level block.  Avoid declaring deref_val again in a way
        that shadows another variable of the same name declared
        in one of the up-level blocks.  Just re-use the up-level
        variable instead.
gdb/ChangeLog
gdb/ada-valprint.c