]> asedeno.scripts.mit.edu Git - linux.git/commit
powerpc/powermac: Mark variable x as unused
authorMathieu Malaterre <malat@debian.org>
Wed, 4 Apr 2018 20:07:46 +0000 (22:07 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 25 May 2018 02:04:40 +0000 (12:04 +1000)
commit5a4b475cf8511da721f20ba432c244061db7139f
tree933bc7a6b65645fe6de208501f5b250cdf74ae7e
parentf0e0b86638e9df6731b1d61c71ae180224664107
powerpc/powermac: Mark variable x as unused

Since the value of x is never intended to be read, declare it with gcc
attribute as unused. Fix warning treated as error with W=1:

  arch/powerpc/platforms/powermac/bootx_init.c:471:21: error: variable ‘x’ set but not used [-Werror=unused-but-set-variable]

Suggested-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powermac/bootx_init.c