summaryrefslogtreecommitdiff
path: root/tools/include/nolibc
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2023-08-03 10:28:47 +0300
committerWilly Tarreau <w@1wt.eu>2023-08-23 06:17:07 +0300
commit809145f8421b2212dd61c6f7385f79b78b7485d5 (patch)
tree67a8e27b9e23221cb3cf882eb7aeb29e123ad9cf /tools/include/nolibc
parent640775022572380b6f78247f10c036e69d404947 (diff)
downloadlinux-809145f8421b2212dd61c6f7385f79b78b7485d5.tar.xz
tools/nolibc: setvbuf: avoid unused parameter warnings
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>
Diffstat (limited to 'tools/include/nolibc')
-rw-r--r--tools/include/nolibc/stdio.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/include/nolibc/stdio.h b/tools/include/nolibc/stdio.h
index a3778aff4fa9..cae402c11e57 100644
--- a/tools/include/nolibc/stdio.h
+++ b/tools/include/nolibc/stdio.h
@@ -356,7 +356,10 @@ void perror(const char *msg)
}
static __attribute__((unused))
-int setvbuf(FILE *stream, char *buf, int mode, size_t size)
+int setvbuf(FILE *stream __attribute__((unused)),
+ char *buf __attribute__((unused)),
+ int mode,
+ size_t size __attribute__((unused)))
{
/*
* nolibc does not support buffering so this is a nop. Just check mode