util.crypto: Preemptively silence 'strict-prototypes' warning
authorKim Alvefur <zash@zash.se>
Tue, 31 Jan 2023 16:27:55 +0100
changeset 12880 0ed24f48b6a6
parent 12879 a28f77018476
child 12884 b56a2731bf00
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
--- a/util-src/crypto.c	Tue Jan 31 07:52:33 2023 +0100
+++ b/util-src/crypto.c	Tue Jan 31 16:27:55 2023 +0100
@@ -40,7 +40,7 @@
 
 #define PKEY_MT_TAG "util.crypto key"
 
-static BIO* new_memory_BIO() {
+static BIO* new_memory_BIO(void) {
 	return BIO_new(BIO_s_mem());
 }