aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Holm <pho@FreeBSD.org>2023-05-27 08:31:00 +0000
committerPeter Holm <pho@FreeBSD.org>2023-05-27 08:31:00 +0000
commitacfb06062a6862f7c823242243e68f7bcaf29999 (patch)
treede10b9ca29e4750514f8df32ca1e35846c1cdd3b /tools
parent5d1ee799de65ca62cd94c1602b41255bdbc3312d (diff)
downloadsrc-acfb06062a6862f7c823242243e68f7bcaf29999.tar.gz
src-acfb06062a6862f7c823242243e68f7bcaf29999.zip
stress2: Fix warnings
Diffstat (limited to 'tools')
-rwxr-xr-xtools/test/stress2/misc/reaper2.sh2
-rwxr-xr-xtools/test/stress2/misc/reaper3.sh2
-rwxr-xr-xtools/test/stress2/misc/reaper4.sh2
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)