git: 0506fe6d3c9e - stable/13 - linux: plug set-but-not-used vars
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Jun 2022 19:38:30 UTC
The branch stable/13 has been updated by dchagin:
URL: https://cgit.FreeBSD.org/src/commit/?id=0506fe6d3c9e4eabc61d7302f14460b538210e2b
commit 0506fe6d3c9e4eabc61d7302f14460b538210e2b
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-12-18 13:12:15 +0000
Commit: Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2022-06-17 19:33:40 +0000
linux: plug set-but-not-used vars
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit 0c8d7eebfdce5045bf3b8669ce954ca2cf553d9a)
---
sys/compat/linux/linux_emul.c | 4 ++--
sys/compat/linux/linux_misc.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sys/compat/linux/linux_emul.c b/sys/compat/linux/linux_emul.c
index e7576ed2b16f..bb7ffd57be6e 100644
--- a/sys/compat/linux/linux_emul.c
+++ b/sys/compat/linux/linux_emul.c
@@ -99,7 +99,7 @@ static void
linux_set_default_openfiles(struct thread *td, struct proc *p)
{
struct rlimit rlim;
- int error;
+ int error __diagused;
if (linux_default_openfiles < 0)
return;
@@ -122,7 +122,7 @@ static void
linux_set_default_stacksize(struct thread *td, struct proc *p)
{
struct rlimit rlim;
- int error;
+ int error __diagused;
if (linux_default_stacksize < 0)
return;
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 2d4936228315..aa18c222ac82 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -205,7 +205,7 @@ linux_alarm(struct thread *td, struct linux_alarm_args *args)
{
struct itimerval it, old_it;
u_int secs;
- int error;
+ int error __diagused;
secs = args->secs;
/*