From 1ea488deee6ed0d90693088c5f22354c53f878f5 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 31 Jan 2023 16:27:55 +0100 Subject: util.crypto: Preemptively silence 'strict-prototypes' warning With `gcc-12 -Wstrict-prototypes` the following warning is shown: crypto.c:43:13: warning: function declaration isn't a prototype [-Wstrict-prototypes] 43 | static BIO* new_memory_BIO() { | ^~~~~~~~~~~~~~ --- util-src/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util-src/crypto.c b/util-src/crypto.c index b24ea63d..d2427503 100644 --- a/util-src/crypto.c +++ b/util-src/crypto.c @@ -40,7 +40,7 @@ typedef unsigned __int32 uint32_t; #define PKEY_MT_TAG "util.crypto key" -static BIO* new_memory_BIO() { +static BIO* new_memory_BIO(void) { return BIO_new(BIO_s_mem()); } -- cgit v1.2.3