mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
crypto/secp256k1: remove useless code
`(void)data;` may cause link error on Windows. LOG: ``` \Go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1 \Temp\go-link-676803019\000003.o: In function `default_error_callback_fn': \go\src\github.com\ethereum\go-ethereum\crypto\secp256k1/./libsecp256k1/src/secp256k1.c:41: undefined reference to `__getreent' \Temp\go-link-676803019\000003.o: In function `default_illegal_callback_fn': \go\src\github.com\ethereum\go-ethereum\crypto\secp256k1/./libsecp256k1/src/secp256k1.c:30: undefined reference to `__getreent' collect2.exe: error: ld returned 1 exit status ```
This commit is contained in:
parent
32c05e82a3
commit
4c0587bf16
1 changed files with 0 additions and 2 deletions
|
|
@ -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 = {
|
||||||
};
|
};
|
||||||
|
|
||||||
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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue