Skip to content

Commit 1d9d381

Browse files
micblofjl
authored andcommitted
crypto/secp256k1: remove useless code (#17728)
`(void)data;` may cause link error on Windows.
1 parent 06d40d3 commit 1d9d381

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

crypto/secp256k1/libsecp256k1/src/secp256k1.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
} while(0)
2727

2828
static void default_illegal_callback_fn(const char* str, void* data) {
29-
(void)data;
3029
fprintf(stderr, "[libsecp256k1] illegal argument: %s\n", str);
3130
abort();
3231
}
@@ -37,7 +36,6 @@ static const secp256k1_callback default_illegal_callback = {
3736
};
3837

3938
static void default_error_callback_fn(const char* str, void* data) {
40-
(void)data;
4139
fprintf(stderr, "[libsecp256k1] internal consistency check failed: %s\n", str);
4240
abort();
4341
}

0 commit comments

Comments
 (0)