From f042e6dfadcd1ca8a763a0fadc4e28f4a3369c0c Mon Sep 17 00:00:00 2001 From: Sude Date: Wed, 4 Sep 2019 13:02:20 +0300 Subject: [PATCH] Suppress warnings about unused parameters --- include/ssl_thread_setup.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/ssl_thread_setup.h b/include/ssl_thread_setup.h index 6a5aee4..bc449a1 100644 --- a/include/ssl_thread_setup.h +++ b/include/ssl_thread_setup.h @@ -17,6 +17,10 @@ void thread_locking_callback(int mode, int n, const char* file, int line) { + // suppress -Wunused-parameter messages by casting these variables to void + (void) file; + (void) line; + if(mode & CRYPTO_LOCK) ssl_mutex_array[n].lock(); else