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:
committed by
Willy Tarreau
parent
6407750225
commit
809145f842
@@ -356,7 +356,10 @@ void perror(const char *msg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static __attribute__((unused))
|
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
|
* nolibc does not support buffering so this is a nop. Just check mode
|
||||||
|
Reference in New Issue
Block a user