From 952c64b4c095b93678518e4e5bead07fd1110275 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 4 Jun 2018 11:18:12 +0200 Subject: [PATCH] threads: Fix compiler warning Use a protype for libcrypto_lock_callback(). Signed-off-by: Andreas Schneider --- src/threads.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/threads.c b/src/threads.c index 191b3b64..52d437df 100644 --- a/src/threads.c +++ b/src/threads.c @@ -132,7 +132,10 @@ static int libmbedcrypto_thread_init(void) static void **libcrypto_mutexes; -static void libcrypto_lock_callback(int mode, int i, const char *file, int line){ +void libcrypto_lock_callback(int mode, int i, const char *file, int line); + +void libcrypto_lock_callback(int mode, int i, const char *file, int line) +{ (void)file; (void)line; if(mode & CRYPTO_LOCK){