Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
➜ Rust git clone https://github.com/paritytech/rust-secp256k1.git
Cloning into 'rust-secp256k1'...
remote: Enumerating objects: 981, done.
remote: Counting objects: 100% (981/981), done.
remote: Compressing objects: 100% (345/345), done.
remote: Total 981 (delta 607), reused 981 (delta 607), pack-reused 0
Receiving objects: 100% (981/981), 471.30 KiB | 184.00 KiB/s, done.
Resolving deltas: 100% (607/607), done.
➜ Rust cd rust-secp256k1
➜ rust-secp256k1 git:(master) cargo build
Updating registry `https://github.com/rust-lang/crates.io-index`
Compiling cc v1.0.25
Compiling nodrop v0.1.12
Compiling libc v0.2.43
Compiling arrayvec v0.4.7
Compiling rand v0.4.3
Compiling eth-secp256k1 v0.5.7 (file:///home/james/Rust/rust-secp256k1)
warning: In file included from depend/secp256k1/src/secp256k1.c:13,
warning: from depend/secp256k1/src/ext.c:8:
warning: depend/secp256k1/src/group_impl.h:686:12: warning: ‘secp256k1_gej_has_quad_y_var’ defined but not used [-Wunused-function]
warning: static int secp256k1_gej_has_quad_y_var(const secp256k1_gej *a) {
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: depend/secp256k1/src/group_impl.h:267:12: warning: ‘secp256k1_gej_is_valid_var’ defined but not used [-Wunused-function]
warning: static int secp256k1_gej_is_valid_var(const secp256k1_gej *a) {
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~
warning: In file included from depend/secp256k1/src/ext.c:8:
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ec_pubkey_parse’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘pubkey’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:154:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(pubkey != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘input’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:156:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(input != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ec_pubkey_serialize’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘output’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:175:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(output != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘outputlen’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:171:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(outputlen != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘pubkey’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:177:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(pubkey != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ecdsa_signature_parse_der’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘sig’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:216:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(sig != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘input’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:217:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(input != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ecdsa_signature_parse_compact’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘sig’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:234:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(sig != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘input64’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:235:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(input64 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ecdsa_signature_serialize_der’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘output’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:253:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(output != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘outputlen’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:254:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(outputlen != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘sig’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:255:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(sig != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ecdsa_signature_serialize_compact’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘output64’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:265:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(output64 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘sig’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:266:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(sig != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ecdsa_signature_normalize’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘sigin’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:279:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(sigin != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ecdsa_verify’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘sig’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:300:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(sig != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘msg32’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:299:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(msg32 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘pubkey’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:301:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(pubkey != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ecdsa_sign’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘signature’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:353:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(signature != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘msg32’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:352:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(msg32 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘seckey’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:354:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(seckey != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ec_seckey_verify’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘seckey’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:396:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(seckey != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ec_pubkey_create’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘pubkey’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:411:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(pubkey != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘seckey’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:414:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(seckey != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ec_privkey_negate’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘seckey’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:430:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(seckey != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ec_pubkey_negate’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘pubkey’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:443:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(pubkey != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ec_privkey_tweak_add’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘seckey’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:460:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(seckey != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘tweak’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:461:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(tweak != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ec_pubkey_tweak_add’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘pubkey’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:484:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(pubkey != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘tweak’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:485:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(tweak != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ec_privkey_tweak_mul’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘seckey’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:507:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(seckey != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘tweak’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:508:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(tweak != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ec_pubkey_tweak_mul’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘pubkey’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:530:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(pubkey != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘tweak’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:531:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(tweak != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ec_pubkey_combine’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘pubnonce’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:559:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(pubnonce != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘pubnonces’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/secp256k1.c:562:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(pubnonces != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ecdh’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘result’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/ecdh/main_impl.h:20:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(result != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘point’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/ecdh/main_impl.h:21:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(point != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘scalar’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/ecdh/main_impl.h:22:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(scalar != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_schnorr_sign’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘sig64’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/schnorr/main_impl.h:31:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(sig64 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘msg32’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/schnorr/main_impl.h:30:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(msg32 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘seckey’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/schnorr/main_impl.h:32:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(seckey != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_schnorr_verify’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘sig64’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/schnorr/main_impl.h:66:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(sig64 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘msg32’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/schnorr/main_impl.h:65:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(msg32 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘pubkey’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/schnorr/main_impl.h:67:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(pubkey != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_schnorr_recover’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘pubkey’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/schnorr/main_impl.h:80:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(pubkey != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘sig64’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/schnorr/main_impl.h:79:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(sig64 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘msg32’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/schnorr/main_impl.h:78:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(msg32 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_schnorr_generate_nonce_pair’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘pubnonce’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/schnorr/main_impl.h:102:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(pubnonce != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘privnonce32’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/schnorr/main_impl.h:103:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(privnonce32 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_schnorr_partial_sign’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘sig64’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/schnorr/main_impl.h:140:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(sig64 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘msg32’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/schnorr/main_impl.h:139:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(msg32 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘sec32’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/schnorr/main_impl.h:141:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(sec32 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘pubnonce_others’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/schnorr/main_impl.h:143:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(pubnonce_others != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘secnonce32’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/schnorr/main_impl.h:142:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(secnonce32 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_schnorr_partial_combine’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘sig64’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/schnorr/main_impl.h:158:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(sig64 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘sig64sin’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/schnorr/main_impl.h:160:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(sig64sin != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ecdsa_recoverable_signature_parse_compact’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘sig’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/recovery/main_impl.h:44:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(sig != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘input64’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/recovery/main_impl.h:45:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(input64 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ecdsa_recoverable_signature_serialize_compact’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘output64’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/recovery/main_impl.h:64:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(output64 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘recid’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/recovery/main_impl.h:66:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(recid != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘sig’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/recovery/main_impl.h:65:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(sig != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ecdsa_recoverable_signature_convert’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘sig’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/recovery/main_impl.h:79:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(sig != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘sigin’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/recovery/main_impl.h:80:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(sigin != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ecdsa_sign_recoverable’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘signature’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/recovery/main_impl.h:132:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(signature != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘msg32’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/recovery/main_impl.h:131:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(msg32 != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘seckey’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/recovery/main_impl.h:133:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(seckey != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/ext.c: In function ‘secp256k1_ecdsa_recover’:
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘pubkey’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/recovery/main_impl.h:179:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(pubkey != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘signature’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/recovery/main_impl.h:178:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(signature != NULL);
warning: ^~~~~~~~~
warning: depend/secp256k1/src/secp256k1.c:22:8: warning: nonnull argument ‘msg32’ compared to NULL [-Wnonnull-compare]
warning: if (EXPECT(!(cond), 0)) { \
warning: ^
warning: depend/secp256k1/src/modules/recovery/main_impl.h:177:5: note: in expansion of macro ‘ARG_CHECK’
warning: ARG_CHECK(msg32 != NULL);
warning: ^~~~~~~~~
Finished dev [unoptimized + debuginfo] target(s) in 16.44s
➜ rust-secp256k1 git:(master) gcc --version
gcc (GCC) 8.2.1 20180831
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
➜ rust-secp256k1 git:(master) screenfetch
██████████████████ ████████ james@james-dl
██████████████████ ████████ OS: Manjaro 17.1.12 Hakoila
██████████████████ ████████ Kernel: x86_64 Linux 4.14.69-1-MANJARO
██████████████████ ████████ Uptime: 2h 14m
████████ ████████ Packages: 1137
████████ ████████ ████████ Shell: zsh 5.5.1
████████ ████████ ████████ Resolution: 1440x900
████████ ████████ ████████ DE: GNOME
████████ ████████ ████████ WM: GNOME Shell
████████ ████████ ████████ WM Theme: Adapta-Maia
████████ ████████ ████████ GTK Theme: Adapta-Maia [GTK2/3]
████████ ████████ ████████ Icon Theme: Papirus-Adapta-Maia
████████ ████████ ████████ Font: Noto Sans 11
████████ ████████ ████████ CPU: Intel Core i5 M 560 @ 4x 2.667GHz
GPU: Mesa DRI Intel(R) Ironlake Mobile
RAM: 2900MiB / 3810MiB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.