Commit 1d9d3815 authored by Payne's avatar Payne Committed by Felix Lange

crypto/secp256k1: remove useless code (#17728)

`(void)data;` may cause link error on Windows.
parent 06d40d37
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
} while(0) } while(0)
static void default_illegal_callback_fn(const char* str, void* data) { static void default_illegal_callback_fn(const char* str, void* data) {
(void)data;
fprintf(stderr, "[libsecp256k1] illegal argument: %s\n", str); fprintf(stderr, "[libsecp256k1] illegal argument: %s\n", str);
abort(); abort();
} }
...@@ -37,7 +36,6 @@ static const secp256k1_callback default_illegal_callback = { ...@@ -37,7 +36,6 @@ static const secp256k1_callback default_illegal_callback = {
}; };
static void default_error_callback_fn(const char* str, void* data) { static void default_error_callback_fn(const char* str, void* data) {
(void)data;
fprintf(stderr, "[libsecp256k1] internal consistency check failed: %s\n", str); fprintf(stderr, "[libsecp256k1] internal consistency check failed: %s\n", str);
abort(); abort();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment