From 412157743fdb229288d5a8917b578f3976141d3c Mon Sep 17 00:00:00 2001 From: kcw-grunt Date: Sat, 25 Nov 2023 10:04:16 -0500 Subject: [PATCH] removed deprecated define and silenced warning --- BRKey.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BRKey.c b/BRKey.c index ca6eb06a4..475facf44 100644 --- a/BRKey.c +++ b/BRKey.c @@ -48,7 +48,6 @@ #pragma clang diagnostic ignored "-Wunused-function" #pragma GCC diagnostic ignored "-Wunused-function" #pragma clang diagnostic ignored "-Wconditional-uninitialized" -#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" #include "secp256k1/src/basic-config.h" #include "secp256k1/src/secp256k1.c" #pragma clang diagnostic pop @@ -57,7 +56,7 @@ static secp256k1_context *_ctx = NULL; static pthread_once_t _ctx_once = PTHREAD_ONCE_INIT; -static void _ctx_init() +static void _ctx_init(void) { _ctx = secp256k1_context_create(SECP256K1_CONTEXT_SIGN | SECP256K1_CONTEXT_VERIFY); }