projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17e66f2
)
selftests/nolibc: avoid unused parameter warnings
author
Thomas Weißschuh
<linux@weissschuh.net>
Thu, 3 Aug 2023 07:28:53 +0000
(09:28 +0200)
committer
Willy 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
patch
|
blob
|
blame
|
history
diff --git
a/tools/testing/selftests/nolibc/nolibc-test.c
b/tools/testing/selftests/nolibc/nolibc-test.c
index da9926e6ec822a5a87acc77320bbc036383be9a4..9372abcac4c376dadce6487cb308e515a91533bc 100644
(file)
--- a/
tools/testing/selftests/nolibc/nolibc-test.c
+++ b/
tools/testing/selftests/nolibc/nolibc-test.c
@@
-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;