selftests/nolibc: avoid unused parameter warnings
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 3 Aug 2023 07:28:53 +0000 (09:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2023 03:17:07 +0000 (05:17 +0200)
This warning will be enabled later so avoid triggering it.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
tools/testing/selftests/nolibc/nolibc-test.c

index da9926e6ec822a5a87acc77320bbc036383be9a4..9372abcac4c376dadce6487cb308e515a91533bc 100644 (file)
@@ -1108,7 +1108,8 @@ static int smash_stack(void)
        return 1;
 }
 
-static int run_protection(int min, int max)
+static int run_protection(int min __attribute__((unused)),
+                         int max __attribute__((unused)))
 {
        pid_t pid;
        int llen = 0, status;