Compilation fixes when CMAKE_BUILD_TYPE = MinSizeRel (-Os flag).
Compiler - gcc 8.3.0 These are mostly errors 'may be used uninitialized in this function' Change-Id: I6a8f7172c99024fd449570937b030e37c0ea5c3d Reviewed-on: https://code.wireshark.org/review/35746 Reviewed-by: Pascal Quantin <pascal@wireshark.org>
This commit is contained in:
parent
dbfb204f48
commit
e57b37137d
|
@ -583,7 +583,7 @@ actx->pinfo->link_dir=P2P_DIR_UL;
|
|||
guint32 total_bit_size = 0;
|
||||
guint32 total_byte_size = 0;
|
||||
nbap_ib_segment_t* nbap_ib_segment;
|
||||
wmem_list_t *list;
|
||||
wmem_list_t *list = NULL;
|
||||
wmem_list_frame_t *curr_frame;
|
||||
guint8 *final_arr;
|
||||
guint8 final_byte_off = 0;
|
||||
|
|
|
@ -1049,7 +1049,7 @@ dissect_address_tlv(tvbuff_t *tvb, int offset, int length, proto_tree *tree)
|
|||
proto_tree *address_tree;
|
||||
guint8 protocol_type;
|
||||
guint8 protocol_length;
|
||||
int nlpid;
|
||||
int nlpid = 0;
|
||||
guint16 address_length;
|
||||
guint16 etypeid = 0;
|
||||
int hf_addr = -1;
|
||||
|
|
|
@ -866,6 +866,8 @@ dissect_gmr1_rach(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* dat
|
|||
proto_tree *rach_tree;
|
||||
const char *desc;
|
||||
int len, is_moc, is_pdt, ies;
|
||||
is_moc = 0;
|
||||
is_pdt = 0;
|
||||
|
||||
len = tvb_reported_length(tvb);
|
||||
|
||||
|
|
|
@ -26664,7 +26664,7 @@ dissect_nbap_IB_SG_DATA(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_,
|
|||
guint32 total_bit_size = 0;
|
||||
guint32 total_byte_size = 0;
|
||||
nbap_ib_segment_t* nbap_ib_segment;
|
||||
wmem_list_t *list;
|
||||
wmem_list_t *list = NULL;
|
||||
wmem_list_frame_t *curr_frame;
|
||||
guint8 *final_arr;
|
||||
guint8 final_byte_off = 0;
|
||||
|
|
|
@ -324,7 +324,7 @@ static gint32 get_msg_num(guint32 psn, guint32 frag_size,
|
|||
guint32 i, epsn, nfrags;
|
||||
request_t *p_request;
|
||||
wmem_list_frame_t *item;
|
||||
segment_info_t *p_segment_info;
|
||||
segment_info_t *p_segment_info = NULL;
|
||||
guint32 iosize = p_rdma_conv_info->iosize;
|
||||
|
||||
/* Look for the segment where the PSN for this packet belongs to */
|
||||
|
@ -413,7 +413,7 @@ static gboolean is_reassembly_done(rdma_conv_info_t *p_rdma_conv_info, guint32 m
|
|||
guint32 reassembled_size = 0;
|
||||
wmem_list_frame_t *item;
|
||||
request_t *p_request;
|
||||
segment_info_t *p_segment_info;
|
||||
segment_info_t *p_segment_info = NULL;
|
||||
gboolean ret = FALSE; /* Make sure there is at least one segment */
|
||||
|
||||
/* Check all segments for the given reassembly message id */
|
||||
|
@ -1325,7 +1325,7 @@ dissect_rpcrdma(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data
|
|||
tvbuff_t *frag_tvb;
|
||||
proto_item *ti;
|
||||
proto_tree *rpcordma_tree;
|
||||
guint offset = 0;
|
||||
guint offset;
|
||||
guint32 msg_type = 0;
|
||||
guint32 xid;
|
||||
guint32 val;
|
||||
|
@ -1339,6 +1339,7 @@ dissect_rpcrdma(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data
|
|||
this is an rpcrdma packet */
|
||||
if (tvb_captured_length(tvb) < 8)
|
||||
return 0;
|
||||
|
||||
if (tvb_get_ntohl(tvb, 4) != 1) /* vers */
|
||||
return 0;
|
||||
|
||||
|
@ -1352,6 +1353,7 @@ dissect_rpcrdma(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data
|
|||
|
||||
rpcordma_tree = proto_item_add_subtree(ti, ett_rpcordma);
|
||||
|
||||
offset = 0;
|
||||
proto_tree_add_item(rpcordma_tree, hf_rpcordma_xid, tvb,
|
||||
offset, 4, ENC_BIG_ENDIAN);
|
||||
offset += 4;
|
||||
|
|
|
@ -3578,7 +3578,7 @@ dissct_rsl_ipaccess_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int
|
|||
unsigned int len, hlen;
|
||||
const struct tlv_def *tdef;
|
||||
proto_item *ti;
|
||||
proto_tree *ie_tree;
|
||||
proto_tree *ie_tree = NULL;
|
||||
|
||||
tag = tvb_get_guint8(tvb, offset);
|
||||
tdef = &rsl_att_tlvdef.def[tag];
|
||||
|
|
Loading…
Reference in New Issue