From: Vsevolod Stakhov Date: Mon, 1 Feb 2016 11:34:42 +0000 (+0000) Subject: Fix warnings X-Git-Tag: 1.1.3~22 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d685ecb20ed2fe5184ba753227fa39c324cdfcf5;p=rspamd.git Fix warnings --- diff --git a/contrib/libucl/ucl_msgpack.c b/contrib/libucl/ucl_msgpack.c index e8ebfba8a..5620a7b11 100644 --- a/contrib/libucl/ucl_msgpack.c +++ b/contrib/libucl/ucl_msgpack.c @@ -750,7 +750,7 @@ ucl_msgpack_get_parser_from_type (unsigned char t) shift = CHAR_BIT - parsers[i].prefixlen; mask = parsers[i].prefix >> shift; - if (mask == (t >> shift)) { + if (mask == (((unsigned int)t) >> shift)) { return &parsers[i]; } } @@ -969,8 +969,8 @@ ucl_msgpack_consume (struct ucl_parser *parser) finish_array_value, error_state } state = read_type, next_state = error_state; - struct ucl_msgpack_parser *obj_parser; - uint64_t len; + struct ucl_msgpack_parser *obj_parser = NULL; + uint64_t len = 0; ssize_t ret, remain, keylen = 0; #ifdef MSGPACK_DEBUG_PARSER uint64_t i;