nptl: fix set-but-unused warning w/_STACK_GROWS_UP
authorMike Frysinger <vapier@gentoo.org>
Thu, 30 Jul 2015 02:53:28 +0000 (22:53 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 5 Aug 2015 08:27:03 +0000 (04:27 -0400)
commit3fad53ec87945e61015913f2d09271573504a1e9
treeb4c032af8702d5ae5f228af9ff3d29b415331293
parent1b15ff4810748abee11b949e6faa115f3f2d20f4
nptl: fix set-but-unused warning w/_STACK_GROWS_UP

On arches that set _STACK_GROWS_UP, the stacktop variable is declared
and set, but never actually used.  Refactor the code a bit so that the
variable is only declared/set under _STACK_GROWS_DOWN settings.
ChangeLog
nptl/allocatestack.c