Date: Sat, 27 May 2023 08:35:10 GMT From: Peter Holm <pho@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: acfb06062a68 - main - stress2: Fix warnings Message-ID: <202305270835.34R8ZA3g041896@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pho: URL: https://cgit.FreeBSD.org/src/commit/?id=acfb06062a6862f7c823242243e68f7bcaf29999 commit acfb06062a6862f7c823242243e68f7bcaf29999 Author: Peter Holm <pho@FreeBSD.org> AuthorDate: 2023-05-27 08:31:00 +0000 Commit: Peter Holm <pho@FreeBSD.org> CommitDate: 2023-05-27 08:31:00 +0000 stress2: Fix warnings --- tools/test/stress2/misc/reaper2.sh | 2 +- tools/test/stress2/misc/reaper3.sh | 2 +- tools/test/stress2/misc/reaper4.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/test/stress2/misc/reaper2.sh b/tools/test/stress2/misc/reaper2.sh index 4a0a9296aca1..1643e9985240 100755 --- a/tools/test/stress2/misc/reaper2.sh +++ b/tools/test/stress2/misc/reaper2.sh @@ -65,7 +65,7 @@ test(void) { struct procctl_reaper_kill killemall; pid_t pid; time_t start; - int data[20], e, n, m; + int data[20], e, n __unused, m; n = m = 0; if (procctl(P_PID, getpid(), PROC_REAP_ACQUIRE, NULL) == -1) diff --git a/tools/test/stress2/misc/reaper3.sh b/tools/test/stress2/misc/reaper3.sh index 5faf2f6b4e88..90bb395da5c1 100755 --- a/tools/test/stress2/misc/reaper3.sh +++ b/tools/test/stress2/misc/reaper3.sh @@ -86,7 +86,7 @@ test(void) { struct procctl_reaper_kill killemall; pid_t pid; time_t start; - int data[20], e, n, m; + int data[20], e, n __unused, m; n = m = 0; if (procctl(P_PID, getpid(), PROC_REAP_ACQUIRE, NULL) == -1) diff --git a/tools/test/stress2/misc/reaper4.sh b/tools/test/stress2/misc/reaper4.sh index c78b9705e3c4..bd30bd1b0efd 100755 --- a/tools/test/stress2/misc/reaper4.sh +++ b/tools/test/stress2/misc/reaper4.sh @@ -85,7 +85,7 @@ test(void) { struct procctl_reaper_kill killemall; pid_t pid; time_t start; - int data[20], e, n, m; + int data[20], e, n __unused, m; n = m = 0; if (procctl(P_PID, getpid(), PROC_REAP_ACQUIRE, NULL) == -1)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305270835.34R8ZA3g041896>