Changeset

12876:0ed24f48b6a6

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() { | ^~~~~~~~~~~~~~
author Kim Alvefur <zash@zash.se>
date Tue, 31 Jan 2023 16:27:55 +0100
parents 12875:a28f77018476
children 12880:b56a2731bf00
files util-src/crypto.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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());
 }