Fix -Wshadow warning in libiberty/cp-demangle.c
authorMark Wielaard <mjw@redhat.com>
Sat, 10 Sep 2016 10:37:35 +0000 (10:37 +0000)
committerMark Wielaard <mark@gcc.gnu.org>
Sat, 10 Sep 2016 10:37:35 +0000 (10:37 +0000)
commit99e77371ca0fd38460f76a6c5880be67d2503292
tree0309089e144cd3b5bf76f5b14e134f0eb129ec0e
parent7861fc4f1c40e8fabd31cd8627b0a173257eeb3c
Fix -Wshadow warning in libiberty/cp-demangle.c

valgrind contains a copy of the libiberty demangler which gets compiled
with -Wshadow. That shows the following warning:

cp-demangle.c: In function ‘d_substitution’:
cp-demangle.c:3772:35: warning: declaration of ‘c’ shadows a previous local
        struct demangle_component *c;
                                   ^
cp-demangle.c:3708:8: note: shadowed declaration is here
   char c;
        ^

Fix that by renaming the struct demangle_component variable to dc.

libiberty/ChangeLog:

* cp-demangle.c (d_substitution): Change struct demangle_component
variable name from c to dc.

From-SVN: r240068
libiberty/ChangeLog
libiberty/cp-demangle.c