From 00338ff50284c2ad7da92df10f3468d3b308b408 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Tue, 5 Sep 2017 17:18:29 +0200 Subject: [PATCH] async.c: fixed signature of dummy functions The signature of several dummy functions that are defined to make compilers happy that complain on empty modules was not standards compliant. To avoid related compiler warnings, the formal argument list of this function now is explicitly declared as void. --- src/address.c | 2 +- src/async.c | 2 +- src/coap_time.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/address.c b/src/address.c index 8d7c98da..40d024ad 100644 --- a/src/address.c +++ b/src/address.c @@ -68,7 +68,7 @@ int coap_is_mcast(const coap_address_t *a) { #else /* !defined(WITH_CONTIKI) && !defined(WITH_LWIP) */ /* make compilers happy that do not like empty modules */ -COAP_STATIC_INLINE void dummy() +COAP_STATIC_INLINE void dummy(void) { } diff --git a/src/async.c b/src/async.c index d8a48f5d..0460f4d3 100644 --- a/src/async.c +++ b/src/async.c @@ -106,5 +106,5 @@ coap_free_async(coap_async_state_t *s) { } #else -void does_not_exist(); /* make some compilers happy */ +void does_not_exist(void); /* make some compilers happy */ #endif /* WITHOUT_ASYNC */ diff --git a/src/coap_time.c b/src/coap_time.c index df8316f5..9231c3bd 100644 --- a/src/coap_time.c +++ b/src/coap_time.c @@ -129,7 +129,7 @@ coap_tick_t coap_ticks_from_rt_us(uint64_t t) { #else /* HAVE_TIME_H */ /* make compilers happy that do not like empty modules */ -COAP_STATIC_INLINE void dummy() +COAP_STATIC_INLINE void dummy(void) { }