Updates from BitShares FC #22
3 changed files with 12 additions and 6 deletions
|
|
@ -29,7 +29,8 @@ struct aes_encoder::impl
|
|||
|
||||
aes_encoder::aes_encoder()
|
||||
{
|
||||
static __attribute__((unused)) int init = init_openssl();
|
||||
static int init = init_openssl();
|
||||
(void)init;
|
||||
}
|
||||
|
||||
aes_encoder::~aes_encoder()
|
||||
|
|
@ -97,7 +98,8 @@ struct aes_decoder::impl
|
|||
|
||||
aes_decoder::aes_decoder()
|
||||
{
|
||||
static __attribute__((unused)) int init = init_openssl();
|
||||
static int init = init_openssl();
|
||||
(void)init;
|
||||
}
|
||||
|
||||
void aes_decoder::init( const fc::sha256& key, const fc::uint128& init_value )
|
||||
|
|
|
|||
|
|
@ -29,8 +29,10 @@ namespace fc { namespace ecc {
|
|||
}
|
||||
|
||||
void _init_lib() {
|
||||
static __attribute__((unused)) const secp256k1_context_t* ctx = _get_context();
|
||||
static __attribute__((unused)) int init_o = init_openssl();
|
||||
static const secp256k1_context_t* ctx = _get_context();
|
||||
(void)ctx;
|
||||
static int init_o = init_openssl();
|
||||
(void)init_o;
|
||||
}
|
||||
|
||||
class public_key_impl
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@ namespace fc {
|
|||
|
||||
void rand_bytes(char* buf, int count)
|
||||
{
|
||||
static __attribute__((unused)) int init = init_openssl();
|
||||
static int init = init_openssl();
|
||||
(void)init;
|
||||
|
||||
int result = RAND_bytes((unsigned char*)buf, count);
|
||||
if (result != 1)
|
||||
|
|
@ -17,7 +18,8 @@ void rand_bytes(char* buf, int count)
|
|||
|
||||
void rand_pseudo_bytes(char* buf, int count)
|
||||
{
|
||||
static __attribute__((unused)) int init = init_openssl();
|
||||
static int init = init_openssl();
|
||||
(void)init;
|
||||
|
||||
int result = RAND_pseudo_bytes((unsigned char*)buf, count);
|
||||
if (result == -1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue