Commit 809145f8 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Willy Tarreau
Browse files

tools/nolibc: setvbuf: avoid unused parameter warnings



This warning will be enabled later so avoid triggering it.

Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
parent 64077502
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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