Diff

util-src/crypto.c @ 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
parent 12837:d3ae47d8a7a7
child 12976:a187600ec7d6
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());
 }