git: 0c8d7eebfdce - main - linux: plug set-but-not-used vars
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 Dec 2021 13:14:34 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=0c8d7eebfdce5045bf3b8669ce954ca2cf553d9a commit 0c8d7eebfdce5045bf3b8669ce954ca2cf553d9a Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2021-12-18 13:12:15 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2021-12-18 13:12:15 +0000 linux: plug set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- 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 f99f31fb668b..eb132d97db4a 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 a7502465efbf..a8857eda680d 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; /*