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); }