[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.
This commit is contained in:
Olaf Bergmann committed 2019-08-30 17:01:25 +02:00
1 parent c8da431594
commit 1fedfc809a
1 file changed
+3 -3
+3 -3
View File
@@ -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 */