Skip to content

Commit

Permalink
crypto/secp256k1: remove useless code (ethereum#17728)
Browse files Browse the repository at this point in the history
`(void)data;` may cause link error on Windows.
  • Loading branch information
micblo authored and fjl committed Sep 21, 2018
1 parent 06d40d3 commit 1d9d381
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crypto/secp256k1/libsecp256k1/src/secp256k1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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();
}
Expand Down

0 comments on commit 1d9d381

Please sign in to comment.