coap_threadsafe.c: Support Visual Studio builds

Fix missing external references
This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2025-07-09 10:54:26 +01:00
1 parent f62c836ece
commit df0b820d88
1 file changed
+10 -8
+10 -8
View File
@@ -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 */