Silence spurious compiler warnings
This commit is contained in:
parent
807bdea2ea
commit
b8061b665d
8
common.c
8
common.c
|
@ -329,7 +329,7 @@ struct socks_connector
|
|||
|
||||
SOCKS_DATA_CB (socks_4a_finish)
|
||||
{
|
||||
uint8_t null, status;
|
||||
uint8_t null = 0, status = 0;
|
||||
hard_assert (msg_unpacker_u8 (unpacker, &null));
|
||||
hard_assert (msg_unpacker_u8 (unpacker, &status));
|
||||
|
||||
|
@ -432,7 +432,7 @@ SOCKS_DATA_CB (socks_5_request_domain)
|
|||
|
||||
SOCKS_DATA_CB (socks_5_request_finish)
|
||||
{
|
||||
uint8_t version, status, reserved, type;
|
||||
uint8_t version = 0, status = 0, reserved = 0, type = 0;
|
||||
hard_assert (msg_unpacker_u8 (unpacker, &version));
|
||||
hard_assert (msg_unpacker_u8 (unpacker, &status));
|
||||
hard_assert (msg_unpacker_u8 (unpacker, &reserved));
|
||||
|
@ -509,7 +509,7 @@ socks_5_request_start (struct socks_connector *self)
|
|||
|
||||
SOCKS_DATA_CB (socks_5_userpass_finish)
|
||||
{
|
||||
uint8_t version, status;
|
||||
uint8_t version = 0, status = 0;
|
||||
hard_assert (msg_unpacker_u8 (unpacker, &version));
|
||||
hard_assert (msg_unpacker_u8 (unpacker, &status));
|
||||
|
||||
|
@ -544,7 +544,7 @@ socks_5_userpass_start (struct socks_connector *self)
|
|||
|
||||
SOCKS_DATA_CB (socks_5_auth_finish)
|
||||
{
|
||||
uint8_t version, method;
|
||||
uint8_t version = 0, method = 0;
|
||||
hard_assert (msg_unpacker_u8 (unpacker, &version));
|
||||
hard_assert (msg_unpacker_u8 (unpacker, &method));
|
||||
|
||||
|
|
Loading…
Reference in New Issue