Thread (83 messages) flat view 83 messages, 6 authors, 2018-03-27

Re: [04/21] powerpc: Mark both tmp variables as unused

From: Michael Ellerman <hidden>
Date: 2018-03-14 09:27:57
Also in: lkml

On Sun, 2018-02-25 at 17:22:19 UTC, Mathieu Malaterre wrote:
Since the value of `tmp` is never intended to be read, declare both `tmp`
variables as unused. Fix warning (treated as error in W=1):

  CC      arch/powerpc/kernel/signal_32.o
arch/powerpc/kernel/signal_32.c: In function ���sys_swapcontext���:
arch/powerpc/kernel/signal_32.c:1048:16: error: variable ���tmp��� set but not used [-Werror=unused-but-set-variable]
  unsigned char tmp;
                ^~~
arch/powerpc/kernel/signal_32.c: In function ���sys_debug_setcontext���:
arch/powerpc/kernel/signal_32.c:1234:16: error: variable ���tmp��� set but not used [-Werror=unused-but-set-variable]
  unsigned char tmp;
                ^~~
cc1: all warnings being treated as errors

Signed-off-by: Mathieu Malaterre <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/67b464a89c21c9edd45ad15c457bb5

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help