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>
This commit is contained in:
Thomas Weißschuh 2023-08-03 09:28:47 +02:00 committed by Willy Tarreau
parent 6407750225
commit 809145f842
1 changed files with 4 additions and 1 deletions

View File

@ -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