tools/nolibc: setvbuf: avoid unused parameter warnings
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 3 Aug 2023 07:28:47 +0000 (09:28 +0200)
committerWilly 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/include/nolibc/stdio.h

index a3778aff4fa92618e1f3d1c3fe2348f23628013b..cae402c11e5754dd4a6633494ec813202926d2f7 100644 (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