# HG changeset patch # User Kim Alvefur # Date 1675178875 -3600 # Node ID 0ed24f48b6a604dba3eb8a1a35989434a4db8255 # Parent a28f7701847662f5afa39dc5de6a57fb139557d3 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() { | ^~~~~~~~~~~~~~ diff -r a28f77018476 -r 0ed24f48b6a6 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()); }