aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPayne <micblo@users.noreply.github.com>2018-09-22 03:42:02 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-09-22 03:42:02 +0800
commit1d9d3815e50153343b6edb88cd2378071c7fe073 (patch)
treead2ce33a3ff11247185afed565dfa99d015a7f94
parent06d40d37b800207918088bc4b94e129f7d28538d (diff)
downloaddexon-1d9d3815e50153343b6edb88cd2378071c7fe073.tar
dexon-1d9d3815e50153343b6edb88cd2378071c7fe073.tar.gz
dexon-1d9d3815e50153343b6edb88cd2378071c7fe073.tar.bz2
dexon-1d9d3815e50153343b6edb88cd2378071c7fe073.tar.lz
dexon-1d9d3815e50153343b6edb88cd2378071c7fe073.tar.xz
dexon-1d9d3815e50153343b6edb88cd2378071c7fe073.tar.zst
dexon-1d9d3815e50153343b6edb88cd2378071c7fe073.zip
crypto/secp256k1: remove useless code (#17728)
`(void)data;` may cause link error on Windows.
-rwxr-xr-xcrypto/secp256k1/libsecp256k1/src/secp256k1.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/crypto/secp256k1/libsecp256k1/src/secp256k1.c b/crypto/secp256k1/libsecp256k1/src/secp256k1.c
index fb8b882fa..7d637bfad 100755
--- a/crypto/secp256k1/libsecp256k1/src/secp256k1.c
+++ b/crypto/secp256k1/libsecp256k1/src/secp256k1.c
@@ -26,7 +26,6 @@
} while(0)
static void default_illegal_callback_fn(const char* str, void* data) {
- (void)data;
fprintf(stderr, "[libsecp256k1] illegal argument: %s\n", str);
abort();
}
@@ -37,7 +36,6 @@ static const secp256k1_callback default_illegal_callback = {
};
static void default_error_callback_fn(const char* str, void* data) {
- (void)data;
fprintf(stderr, "[libsecp256k1] internal consistency check failed: %s\n", str);
abort();
}