aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-01-31 16:27:55 +0100
committerKim Alvefur <zash@zash.se>2023-01-31 16:27:55 +0100
commit1ea488deee6ed0d90693088c5f22354c53f878f5 (patch)
tree2751c73ae2a0d57a5a9998d9635021d41493b49d /util-src
parent36051376569002af4b53d55955c331de7182b44e (diff)
downloadprosody-1ea488deee6ed0d90693088c5f22354c53f878f5.tar.gz
prosody-1ea488deee6ed0d90693088c5f22354c53f878f5.zip
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() { | ^~~~~~~~~~~~~~
Diffstat (limited to 'util-src')
-rw-r--r--util-src/crypto.c2
1 files changed, 1 insertions, 1 deletions
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());
}