From d685ecb20ed2fe5184ba753227fa39c324cdfcf5 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 1 Feb 2016 11:34:42 +0000 Subject: [PATCH] Fix warnings --- contrib/libucl/ucl_msgpack.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5