diff options
| author | zhengchao <[email protected]> | 2018-11-26 16:27:06 +0800 |
|---|---|---|
| committer | zhengchao <[email protected]> | 2018-11-26 16:28:23 +0800 |
| commit | c31f7cbaa7714888d1f8df74a8da20d4eac0bd32 (patch) | |
| tree | 1c8c481cf92aa254922f364c18bb5bf12b0a6048 /platform/src/ssl_sess_cache.cpp | |
| parent | bd18a66a17f7616f99023a171ecaf1bbff95e02c (diff) | |
#85 消除部分警告
Diffstat (limited to 'platform/src/ssl_sess_cache.cpp')
| -rw-r--r-- | platform/src/ssl_sess_cache.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/platform/src/ssl_sess_cache.cpp b/platform/src/ssl_sess_cache.cpp index 93cf070..cc41a3c 100644 --- a/platform/src/ssl_sess_cache.cpp +++ b/platform/src/ssl_sess_cache.cpp @@ -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); |
