emit_local(): Fix unused warning
authorBernhard Reutner-Fischer <aldot@gcc.gnu.org>
Wed, 8 Apr 2015 17:56:18 +0000 (19:56 +0200)
committerBernhard Reutner-Fischer <aldot@gcc.gnu.org>
Wed, 8 Apr 2015 17:56:18 +0000 (19:56 +0200)
commita876b410369ec708b2788799e837fe8a2b242cb1
tree7015fdf157f00b30b01234301123732d13dcf292
parentd93bdab53b8de8677bca3af17fe8072458ea3f6b
emit_local(): Fix unused warning

Honzas r221269 produced

gcc/varasm.c:1936:7: error: unused variable ‘align’
[-Werror=unused-variable]
   int align = symtab_node::get (decl)->definition_alignment ();
       ^
on e.g.:

log/alpha64-dec-vms
log/alpha-dec-vms
log/i686-cygwinOPT-enable-threads=yes
log/i686-mingw32crt
log/i686-openbsd3.0
log/i686-pc-msdosdjgpp
log/m68k-openbsd

Silence this by moving the variable into the corresponding blocks and
adding back the ATTRIBUTE_UNUSED decoration for the decl param.

From-SVN: r221925
gcc/ChangeLog
gcc/varasm.c