mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-05 01:12:55 +03:00
[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:
1 parent
c8da431594
commit
1fedfc809a
1 file changed
+3
-3
+3
-3
@@ -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 */
|
||||
|
||||
|
||||
Reference in new issue
Block a user