1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-16 03:34:56 +02:00

src/libsecp256k1/ecdsa.cpp: fix unused variable warning in extended_nonce_function()

This commit is contained in:
Henrik Hautakoski 2023-04-10 17:32:22 +02:00
parent ee4705e858
commit b7a1298615

View file

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