Skip to content

Commit

Permalink
Merge pull request #318 from elichai/secp_build_warn
Browse files Browse the repository at this point in the history
Fix a C compiler warning because of redefinition of SECP256K1_BUILD
  • Loading branch information
apoelstra committed Jul 1, 2021
2 parents ea4eae8 + 70847e6 commit 12e3c66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions secp256k1-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ fn main() {
.include("depend/secp256k1/include")
.include("depend/secp256k1/src")
.flag_if_supported("-Wno-unused-function") // some ecmult stuff is defined but not used upstream
.define("SECP256K1_BUILD", Some("1"))
.define("SECP256K1_API", Some(""))
.define("ENABLE_MODULE_ECDH", Some("1"))
.define("ENABLE_MODULE_SCHNORRSIG", Some("1"))
Expand All @@ -42,7 +41,7 @@ fn main() {
.define("USE_NUM_NONE", Some("1"))
.define("USE_FIELD_INV_BUILTIN", Some("1"))
.define("USE_SCALAR_INV_BUILTIN", Some("1"));

if cfg!(feature = "lowmemory") {
base_config.define("ECMULT_WINDOW_SIZE", Some("4")); // A low-enough value to consume neglible memory
} else {
Expand Down

0 comments on commit 12e3c66

Please sign in to comment.