git: 5bce15eb9e1b - stable/13 - linux(4): Fix "set but not used" warnings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Jun 2022 19:38:26 UTC
The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=5bce15eb9e1b2bc645435e88b1450ead0f66515a commit 5bce15eb9e1b2bc645435e88b1450ead0f66515a Author: Edward Tomasz Napierala <trasz@FreeBSD.org> AuthorDate: 2021-11-29 16:44:40 +0000 Commit: Dmitry Chagin <dchagin@FreeBSD.org> CommitDate: 2022-06-17 19:33:38 +0000 linux(4): Fix "set but not used" warnings No functional changes. Sponsored By: EPSRC (cherry picked from commit a089c17d320684e6eb36556fa131a8286e6a821d) --- sys/arm64/linux/linux_sysvec.c | 2 -- sys/compat/linux/linux_fork.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/arm64/linux/linux_sysvec.c b/sys/arm64/linux/linux_sysvec.c index dfbc12ee4b42..8e4a88f6439c 100644 --- a/sys/arm64/linux/linux_sysvec.c +++ b/sys/arm64/linux/linux_sysvec.c @@ -433,7 +433,6 @@ linux_rt_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask) struct l_sigframe *fp, frame; struct sigacts *psp; int onstack, sig; - uint32_t spsr; td = curthread; p = td->td_proc; @@ -468,7 +467,6 @@ linux_rt_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask) /* Fill in the frame to copy out */ bzero(&frame, sizeof(frame)); get_mcontext(td, &frame.sf_uc.uc_mcontext, 0); - spsr = frame.sf_uc.uc_mcontext.mc_gpregs.gp_spsr; /* Translate the signal. */ sig = bsd_to_linux_signal(sig); diff --git a/sys/compat/linux/linux_fork.c b/sys/compat/linux/linux_fork.c index f722e3c08482..bcd5ffe3c589 100644 --- a/sys/compat/linux/linux_fork.c +++ b/sys/compat/linux/linux_fork.c @@ -482,7 +482,7 @@ out: int linux_exit(struct thread *td, struct linux_exit_args *args) { - struct linux_emuldata *em; + struct linux_emuldata *em __diagused; em = em_find(td); KASSERT(em != NULL, ("exit: emuldata not found.\n"));