Skip to content

[Version3] unused function warnings. #1208

@evoskuil

Description

@evoskuil

These local static functions are all invoked by exported functions in the same .cpp file and there is no signature ambuguity.

CXX      src/wallet/src_libbitcoin_la-hd_private.lo
src/wallet/encrypted_keys.cpp:74:13: warning: ‘bool libbitcoin::wallet::address_salt(libbitcoin::wallet::ek_salt&, const ec_secret&, uint8_t, bool)’ defined but not used [-Wunused-function]
 static bool address_salt(ek_salt& salt, const ec_secret& secret,
             ^
src/wallet/encrypted_keys.cpp:88:13: warning: ‘bool libbitcoin::wallet::address_validate(const ek_salt&, const ec_compressed&, uint8_t, bool)’ defined but not used [-Wunused-function]
 static bool address_validate(const ek_salt& salt, const ec_compressed& point,
             ^
src/wallet/encrypted_keys.cpp:95:13: warning: ‘bool libbitcoin::wallet::address_validate(const ek_salt&, const ec_secret&, uint8_t, bool)’ defined but not used [-Wunused-function]
 static bool address_validate(const ek_salt& salt, const ec_secret& secret,
             ^
src/wallet/encrypted_keys.cpp:119:17: warning: ‘libbitcoin::one_byte libbitcoin::wallet::point_sign(const one_byte&, const hash_digest&)’ defined but not used [-Wunused-function]
 static one_byte point_sign(const one_byte& single, const hash_digest& hash)
                 ^
src/wallet/encrypted_keys.cpp:127:20: warning: ‘libbitcoin::hash_digest libbitcoin::wallet::scrypt_token(libbitcoin::data_slice, libbitcoin::data_slice)’ defined but not used [-Wunused-function]
 static hash_digest scrypt_token(data_slice data, data_slice salt)
                    ^
src/wallet/encrypted_keys.cpp:139:18: warning: ‘libbitcoin::long_hash libbitcoin::wallet::scrypt_private(libbitcoin::data_slice, libbitcoin::data_slice)’ defined but not used [-Wunused-function]
 static long_hash scrypt_private(data_slice data, data_slice salt)
                  ^
src/wallet/encrypted_keys.cpp:169:17: warning: ‘libbitcoin::one_byte libbitcoin::wallet::set_flags(bool)’ defined but not used [-Wunused-function]
 static one_byte set_flags(bool compressed)
                 ^

https://travis-ci.org/github/libbitcoin/libbitcoin-system/jobs/763760390#L1014-L1035

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions