git: 7f658f99f7ed - main - stress2: Mark set but unused variables as unused

From: Peter Holm <pho_at_FreeBSD.org>
Date: Sat, 22 Apr 2023 11:17:07 UTC
The branch main has been updated by pho:

URL: https://cgit.FreeBSD.org/src/commit/?id=7f658f99f7ed5d1d0e0802073bb22eb8a0a784fb

commit 7f658f99f7ed5d1d0e0802073bb22eb8a0a784fb
Author:     Peter Holm <pho@FreeBSD.org>
AuthorDate: 2023-04-22 11:16:01 +0000
Commit:     Peter Holm <pho@FreeBSD.org>
CommitDate: 2023-04-22 11:16:01 +0000

    stress2: Mark set but unused variables as unused
---
 tools/test/stress2/misc/syzkaller11.sh | 2 +-
 tools/test/stress2/misc/syzkaller12.sh | 2 +-
 tools/test/stress2/misc/syzkaller14.sh | 2 +-
 tools/test/stress2/misc/syzkaller15.sh | 2 +-
 tools/test/stress2/misc/syzkaller16.sh | 2 +-
 tools/test/stress2/misc/syzkaller19.sh | 2 +-
 tools/test/stress2/misc/syzkaller24.sh | 2 +-
 tools/test/stress2/misc/syzkaller26.sh | 2 +-
 tools/test/stress2/misc/syzkaller27.sh | 2 +-
 tools/test/stress2/misc/syzkaller28.sh | 2 +-
 tools/test/stress2/misc/syzkaller29.sh | 2 +-
 tools/test/stress2/misc/syzkaller31.sh | 2 +-
 tools/test/stress2/misc/syzkaller32.sh | 2 +-
 tools/test/stress2/misc/syzkaller33.sh | 2 +-
 tools/test/stress2/misc/syzkaller34.sh | 2 +-
 tools/test/stress2/misc/syzkaller4.sh  | 2 +-
 tools/test/stress2/misc/syzkaller42.sh | 2 +-
 tools/test/stress2/misc/syzkaller43.sh | 2 +-
 tools/test/stress2/misc/syzkaller50.sh | 2 +-
 tools/test/stress2/misc/syzkaller51.sh | 2 +-
 tools/test/stress2/misc/syzkaller53.sh | 2 +-
 tools/test/stress2/misc/syzkaller54.sh | 2 +-
 tools/test/stress2/misc/syzkaller55.sh | 2 +-
 tools/test/stress2/misc/syzkaller58.sh | 2 +-
 tools/test/stress2/misc/syzkaller59.sh | 2 +-
 tools/test/stress2/misc/syzkaller61.sh | 2 +-
 tools/test/stress2/misc/syzkaller64.sh | 2 +-
 tools/test/stress2/misc/syzkaller7.sh  | 2 +-
 28 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/tools/test/stress2/misc/syzkaller11.sh b/tools/test/stress2/misc/syzkaller11.sh
index 9586092cd5b3..788ea3a9557a 100755
--- a/tools/test/stress2/misc/syzkaller11.sh
+++ b/tools/test/stress2/misc/syzkaller11.sh
@@ -218,7 +218,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter;
+  int iter __unused;
   for (iter = 0;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller12.sh b/tools/test/stress2/misc/syzkaller12.sh
index dc026dc348bc..f5468c6c5e1f 100755
--- a/tools/test/stress2/misc/syzkaller12.sh
+++ b/tools/test/stress2/misc/syzkaller12.sh
@@ -94,7 +94,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter;
+  int iter __unused;
   for (iter = 0;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller14.sh b/tools/test/stress2/misc/syzkaller14.sh
index 5fa99004f838..9181fe71a2af 100755
--- a/tools/test/stress2/misc/syzkaller14.sh
+++ b/tools/test/stress2/misc/syzkaller14.sh
@@ -229,7 +229,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter;
+  int iter __unused;
   for (iter = 0;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller15.sh b/tools/test/stress2/misc/syzkaller15.sh
index d15017d7eb12..7a13bd819f0b 100755
--- a/tools/test/stress2/misc/syzkaller15.sh
+++ b/tools/test/stress2/misc/syzkaller15.sh
@@ -112,7 +112,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter;
+  int iter __unused;
   for (iter = 0;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller16.sh b/tools/test/stress2/misc/syzkaller16.sh
index 8671b46474ac..7035223b8f0e 100755
--- a/tools/test/stress2/misc/syzkaller16.sh
+++ b/tools/test/stress2/misc/syzkaller16.sh
@@ -273,7 +273,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter;
+  int iter __unused;
   for (iter = 0;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller19.sh b/tools/test/stress2/misc/syzkaller19.sh
index b36b12e524f2..116ab539c152 100755
--- a/tools/test/stress2/misc/syzkaller19.sh
+++ b/tools/test/stress2/misc/syzkaller19.sh
@@ -78,7 +78,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter;
+  int iter __unused;
   for (iter = 0;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller24.sh b/tools/test/stress2/misc/syzkaller24.sh
index 12a816598b8f..98d4f90b146f 100755
--- a/tools/test/stress2/misc/syzkaller24.sh
+++ b/tools/test/stress2/misc/syzkaller24.sh
@@ -81,7 +81,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller26.sh b/tools/test/stress2/misc/syzkaller26.sh
index f14806199ff5..857ba0eaac65 100755
--- a/tools/test/stress2/misc/syzkaller26.sh
+++ b/tools/test/stress2/misc/syzkaller26.sh
@@ -82,7 +82,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller27.sh b/tools/test/stress2/misc/syzkaller27.sh
index b003f6aec319..a84c921e462d 100755
--- a/tools/test/stress2/misc/syzkaller27.sh
+++ b/tools/test/stress2/misc/syzkaller27.sh
@@ -86,7 +86,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller28.sh b/tools/test/stress2/misc/syzkaller28.sh
index c6ba56d1e222..7062d84a8234 100755
--- a/tools/test/stress2/misc/syzkaller28.sh
+++ b/tools/test/stress2/misc/syzkaller28.sh
@@ -220,7 +220,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller29.sh b/tools/test/stress2/misc/syzkaller29.sh
index 8b67dd4e1283..5976e2cc596d 100755
--- a/tools/test/stress2/misc/syzkaller29.sh
+++ b/tools/test/stress2/misc/syzkaller29.sh
@@ -79,7 +79,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller31.sh b/tools/test/stress2/misc/syzkaller31.sh
index 12eb98bd8c57..9815ac16f404 100755
--- a/tools/test/stress2/misc/syzkaller31.sh
+++ b/tools/test/stress2/misc/syzkaller31.sh
@@ -228,7 +228,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller32.sh b/tools/test/stress2/misc/syzkaller32.sh
index 03a13738c58a..1d96f1e3deff 100755
--- a/tools/test/stress2/misc/syzkaller32.sh
+++ b/tools/test/stress2/misc/syzkaller32.sh
@@ -231,7 +231,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller33.sh b/tools/test/stress2/misc/syzkaller33.sh
index 7f017cd167f1..fac3318e4d0d 100755
--- a/tools/test/stress2/misc/syzkaller33.sh
+++ b/tools/test/stress2/misc/syzkaller33.sh
@@ -88,7 +88,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller34.sh b/tools/test/stress2/misc/syzkaller34.sh
index 247079e1cd1a..d8b89991c2f2 100755
--- a/tools/test/stress2/misc/syzkaller34.sh
+++ b/tools/test/stress2/misc/syzkaller34.sh
@@ -53,7 +53,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller4.sh b/tools/test/stress2/misc/syzkaller4.sh
index 2a14d4d2b776..06797980b2a0 100755
--- a/tools/test/stress2/misc/syzkaller4.sh
+++ b/tools/test/stress2/misc/syzkaller4.sh
@@ -215,7 +215,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter;
+  int iter __unused;
   for (iter = 0;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller42.sh b/tools/test/stress2/misc/syzkaller42.sh
index b5b234de9cd6..e0a02e18df2d 100755
--- a/tools/test/stress2/misc/syzkaller42.sh
+++ b/tools/test/stress2/misc/syzkaller42.sh
@@ -75,7 +75,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller43.sh b/tools/test/stress2/misc/syzkaller43.sh
index ffa6e1c6857c..fb32ea77ab66 100755
--- a/tools/test/stress2/misc/syzkaller43.sh
+++ b/tools/test/stress2/misc/syzkaller43.sh
@@ -214,7 +214,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller50.sh b/tools/test/stress2/misc/syzkaller50.sh
index d50e90866b8c..e813db054458 100755
--- a/tools/test/stress2/misc/syzkaller50.sh
+++ b/tools/test/stress2/misc/syzkaller50.sh
@@ -71,7 +71,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller51.sh b/tools/test/stress2/misc/syzkaller51.sh
index bd5b5da16d9a..772d6cc556c0 100755
--- a/tools/test/stress2/misc/syzkaller51.sh
+++ b/tools/test/stress2/misc/syzkaller51.sh
@@ -78,7 +78,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller53.sh b/tools/test/stress2/misc/syzkaller53.sh
index ecb0843b8c1f..bfbabe70a571 100755
--- a/tools/test/stress2/misc/syzkaller53.sh
+++ b/tools/test/stress2/misc/syzkaller53.sh
@@ -119,7 +119,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller54.sh b/tools/test/stress2/misc/syzkaller54.sh
index dc3ce0dc876c..252ba4e0f6f4 100755
--- a/tools/test/stress2/misc/syzkaller54.sh
+++ b/tools/test/stress2/misc/syzkaller54.sh
@@ -216,7 +216,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller55.sh b/tools/test/stress2/misc/syzkaller55.sh
index 9914587926cf..e1d3e7a28121 100755
--- a/tools/test/stress2/misc/syzkaller55.sh
+++ b/tools/test/stress2/misc/syzkaller55.sh
@@ -77,7 +77,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller58.sh b/tools/test/stress2/misc/syzkaller58.sh
index 0083e13f1692..6c11cd583b9d 100755
--- a/tools/test/stress2/misc/syzkaller58.sh
+++ b/tools/test/stress2/misc/syzkaller58.sh
@@ -216,7 +216,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller59.sh b/tools/test/stress2/misc/syzkaller59.sh
index b628c25d3298..1644ce627934 100755
--- a/tools/test/stress2/misc/syzkaller59.sh
+++ b/tools/test/stress2/misc/syzkaller59.sh
@@ -94,7 +94,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller61.sh b/tools/test/stress2/misc/syzkaller61.sh
index e150843dc380..a25ae4cf00d8 100755
--- a/tools/test/stress2/misc/syzkaller61.sh
+++ b/tools/test/stress2/misc/syzkaller61.sh
@@ -249,7 +249,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller64.sh b/tools/test/stress2/misc/syzkaller64.sh
index c9a88f2184a6..f13fd415087b 100755
--- a/tools/test/stress2/misc/syzkaller64.sh
+++ b/tools/test/stress2/misc/syzkaller64.sh
@@ -268,7 +268,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter = 0;
+  int iter __unused = 0;
   for (;; iter++) {
     int pid = fork();
     if (pid < 0)
diff --git a/tools/test/stress2/misc/syzkaller7.sh b/tools/test/stress2/misc/syzkaller7.sh
index f43747006862..c03a47d8b2d2 100755
--- a/tools/test/stress2/misc/syzkaller7.sh
+++ b/tools/test/stress2/misc/syzkaller7.sh
@@ -80,7 +80,7 @@ static void execute_one(void);
 
 static void loop(void)
 {
-  int iter;
+  int iter __unused;
   for (iter = 0;; iter++) {
     int pid = fork();
     if (pid < 0)