From df0b820d8888223915316727cbd3306d0a8d63b8 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Wed, 9 Jul 2025 10:23:39 +0100 Subject: [PATCH] coap_threadsafe.c: Support Visual Studio builds Fix missing external references --- src/coap_threadsafe.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/coap_threadsafe.c b/src/coap_threadsafe.c index 0caef3d9..2c9c8065 100644 --- a/src/coap_threadsafe.c +++ b/src/coap_threadsafe.c @@ -207,14 +207,16 @@ coap_io_process_remove_threads(coap_context_t *context) { #else /* ! COAP_THREAD_SAFE */ -#ifdef __clang__ -/* Make compilers happy that do not like empty modules. As this function is - * never used, we ignore -Wunused-function at the end of compiling this file - */ -#pragma GCC diagnostic ignored "-Wunused-function" -#endif -static inline void -dummy(void) { +int +coap_io_process_configure_threads(coap_context_t *context, uint32_t thread_count) { + (void)context; + (void)thread_count; + return 0; +} + +void +coap_io_process_remove_threads(coap_context_t *context) { + (void)context; } #endif /* ! COAP_THREAD_SAFE */