Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
12875:a28f77018476 | 12876:0ed24f48b6a6 |
---|---|
38 | 38 |
39 #include "managed_pointer.h" | 39 #include "managed_pointer.h" |
40 | 40 |
41 #define PKEY_MT_TAG "util.crypto key" | 41 #define PKEY_MT_TAG "util.crypto key" |
42 | 42 |
43 static BIO* new_memory_BIO() { | 43 static BIO* new_memory_BIO(void) { |
44 return BIO_new(BIO_s_mem()); | 44 return BIO_new(BIO_s_mem()); |
45 } | 45 } |
46 | 46 |
47 MANAGED_POINTER_ALLOCATOR(new_managed_EVP_MD_CTX, EVP_MD_CTX*, EVP_MD_CTX_new, EVP_MD_CTX_free) | 47 MANAGED_POINTER_ALLOCATOR(new_managed_EVP_MD_CTX, EVP_MD_CTX*, EVP_MD_CTX_new, EVP_MD_CTX_free) |
48 MANAGED_POINTER_ALLOCATOR(new_managed_BIO_s_mem, BIO*, new_memory_BIO, BIO_free) | 48 MANAGED_POINTER_ALLOCATOR(new_managed_BIO_s_mem, BIO*, new_memory_BIO, BIO_free) |