]> git.baikalelectronics.ru Git - kernel.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)
commit7992f8694c27f0da39001a8390dc1b5b57d679ef
tree933bc7a6b65645fe6de208501f5b250cdf74ae7e
parent7378de2aad387288d7ff4116c819f974a65b76b8
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