From b7a1298615a30afec16afea5a336301787404972 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 10 Apr 2023 17:32:22 +0200 Subject: [PATCH] src/libsecp256k1/ecdsa.cpp: fix unused variable warning in extended_nonce_function() --- src/libsecp256k1/ecdsa.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libsecp256k1/ecdsa.cpp b/src/libsecp256k1/ecdsa.cpp index 3aa8a5c..8984fe7 100644 --- a/src/libsecp256k1/ecdsa.cpp +++ b/src/libsecp256k1/ecdsa.cpp @@ -39,6 +39,7 @@ int is_canonical(const unsigned char *d) { static int extended_nonce_function( unsigned char *nonce32, const unsigned char *msg32, const unsigned char *key32, const unsigned char* algo16, void* data, unsigned int attempt ) { + (void)attempt; // "use" the variable here to shutup compiler about unsed variable. return secp256k1_nonce_function_rfc6979(nonce32, msg32, key32, algo16, nullptr, *(unsigned int*) data); }