From 1fedfc809a5b081cbdd06d6067352acda5963b6e Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Fri, 30 Aug 2019 17:01:25 +0200 Subject: [PATCH] [Contiki] coap_debug.c: Fix warning about unused parameter As no f[v]printf() functions are available on Contiki, the given file descriptor is not used. This change fixes the corresponding compiler compiler warning. --- src/coap_debug.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/coap_debug.c b/src/coap_debug.c index 91fa4085..0426102b 100644 --- a/src/coap_debug.c +++ b/src/coap_debug.c @@ -264,13 +264,13 @@ coap_print_addr(const struct coap_address_t *addr, unsigned char *buf, size_t le } #ifdef WITH_CONTIKI -# define fprintf(fd, ...) PRINTF(__VA_ARGS__) +# define fprintf(fd, ...) { (void)fd; PRINTF(__VA_ARGS__); } # define fflush(...) # ifdef HAVE_VPRINTF -# define vfprintf(fd, ...) vprintf(__VA_ARGS__) +# define vfprintf(fd, ...) { (void)fd; vprintf(__VA_ARGS__); } # else /* HAVE_VPRINTF */ -# define vfprintf(fd, ...) PRINTF(__VA_ARGS__) +# define vfprintf(fd, ...) { (void)fd; PRINTF(__VA_ARGS__); } # endif /* HAVE_VPRINTF */ #endif /* WITH_CONTIKI */