#85 消除部分警告
This commit is contained in:
@@ -45,7 +45,8 @@ static struct asn1_sess * ssl_sess_serialize(SSL_SESSION * sess)
|
||||
{
|
||||
struct asn1_sess * result = ALLOC(struct asn1_sess, 1);
|
||||
|
||||
int i = i2d_SSL_SESSION(sess, NULL), j=0;
|
||||
int i = i2d_SSL_SESSION(sess, NULL);
|
||||
UNUSED int j=0;
|
||||
result->size = (size_t) i;
|
||||
unsigned char* temp=NULL;
|
||||
assert(i > 0);
|
||||
@@ -129,7 +130,7 @@ static long sess_cache_set_cb(void * data, const uchar * key, uint size, void *
|
||||
struct asn1_sess * new_asn1 = args->new_sess;
|
||||
struct asn1_sess * cur_asn1 = (struct asn1_sess *) data;
|
||||
|
||||
int ret = 0;
|
||||
UNUSED int ret = 0;
|
||||
if (cur_asn1 != NULL)
|
||||
{
|
||||
free(cur_asn1->buff);
|
||||
@@ -149,7 +150,7 @@ static long sess_cache_set_cb(void * data, const uchar * key, uint size, void *
|
||||
static size_t upsess_mk_key(struct sockaddr * res, socklen_t addrlen, const char * sni, unsigned char ** key_buf)
|
||||
{
|
||||
size_t key_size = 0;
|
||||
unsigned short port;
|
||||
unsigned short port=0;
|
||||
|
||||
char *s = NULL;
|
||||
switch(res->sa_family) {
|
||||
@@ -299,7 +300,7 @@ struct sess_cache * ssl_sess_cache_create(unsigned int slot_size, unsigned int e
|
||||
{
|
||||
struct sess_cache * cache = ALLOC(struct sess_cache, 1);
|
||||
unsigned max_num = slot_size * 4;
|
||||
int ret = 0;
|
||||
UNUSED int ret = 0;
|
||||
|
||||
MESA_htable_handle htable = MESA_htable_born();
|
||||
ret = __wrapper_MESA_htable_set_opt(htable, MHO_SCREEN_PRINT_CTRL, 0);
|
||||
|
||||
Reference in New Issue
Block a user