diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2011-01-20 18:56:11 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2011-01-20 18:56:11 +0000 |
commit | fc7b0c019bc36207b5f952ae2aa010b5eb5c2fc2 (patch) | |
tree | 40bfd91ae03d273aa0c527801d18c87ae20dfe38 /epan | |
parent | 9c04eb9b2c6f75f19daf47aa2d7957388260001e (diff) |
Fix the dead initialization warnings found by clang's static analysis
("Value stored to 'xxx' during its initialization is never read")
svn path=/trunk/; revision=35598
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-assa_r3.c | 4 | ||||
-rw-r--r-- | epan/dissectors/packet-bacapp.c | 2 | ||||
-rw-r--r-- | epan/dissectors/packet-gtp.c | 2 | ||||
-rw-r--r-- | epan/dissectors/packet-rtcp.c | 2 | ||||
-rw-r--r-- | epan/tvbuff.c | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-assa_r3.c b/epan/dissectors/packet-assa_r3.c index 12797dc789..9b0faac01c 100644 --- a/epan/dissectors/packet-assa_r3.c +++ b/epan/dissectors/packet-assa_r3.c @@ -5497,8 +5497,8 @@ static gint dissect_r3_command (tvbuff_t *tvb, guint32 start_offset, guint32 len proto_item *cmd_item = NULL; proto_tree *cmd_tree = NULL; const gchar *cn = NULL; - guint8 cmdLen = tvb_get_guint8 (tvb, start_offset + 0); - guint8 cmd = tvb_get_guint8 (tvb, start_offset + 1); + guint8 cmdLen; + guint8 cmd; tvb_ensure_bytes_exist (tvb, start_offset, 2); diff --git a/epan/dissectors/packet-bacapp.c b/epan/dissectors/packet-bacapp.c index c2b9f05119..fdcbfde193 100644 --- a/epan/dissectors/packet-bacapp.c +++ b/epan/dissectors/packet-bacapp.c @@ -8905,7 +8905,7 @@ static void dissect_bacapp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { guint8 flag, bacapp_type; - guint save_fragmented = FALSE, data_offset = 0, bacapp_apdu_size = fGetMaxAPDUSize(0), fragment = FALSE; + guint save_fragmented = FALSE, data_offset = 0, bacapp_apdu_size, fragment = FALSE; tvbuff_t* new_tvb = NULL; guint offset = 0; guint8 bacapp_seqno = 0; diff --git a/epan/dissectors/packet-gtp.c b/epan/dissectors/packet-gtp.c index 1c0d2e84d5..b63a293f91 100644 --- a/epan/dissectors/packet-gtp.c +++ b/epan/dissectors/packet-gtp.c @@ -6444,7 +6444,7 @@ static void dissect_gtp_common(tvbuff_t * tvb, packet_info * pinfo, proto_tree * guint8 sub_proto, acfield_len = 0, control_field; gtp_msg_hash_t *gcrp=NULL; conversation_t *conversation=NULL; - gtp_conv_info_t *gtp_info=(gtp_conv_info_t *)pinfo->private_data; + gtp_conv_info_t *gtp_info; void* pd_save; diff --git a/epan/dissectors/packet-rtcp.c b/epan/dissectors/packet-rtcp.c index a0815a4715..757beb88ea 100644 --- a/epan/dissectors/packet-rtcp.c +++ b/epan/dissectors/packet-rtcp.c @@ -2618,7 +2618,7 @@ static void add_roundtrip_delay_info(tvbuff_t *tvb, packet_info *pinfo, proto_tr static int rtcp_packet_type_to_tree( int rtcp_packet_type) { - int tree = ett_rtcp; + int tree; switch(rtcp_packet_type) { case RTCP_SR: tree = ett_rtcp_sr; break; diff --git a/epan/tvbuff.c b/epan/tvbuff.c index edb095a8d8..8aa1e7b503 100644 --- a/epan/tvbuff.c +++ b/epan/tvbuff.c @@ -3031,7 +3031,7 @@ tvb_find_line_end_unquoted(tvbuff_t *tvb, const gint offset, int len, gint tvb_skip_wsp(tvbuff_t* tvb, const gint offset, const gint maxlength) { gint counter = offset; - gint end = offset + maxlength,tvb_len; + gint end, tvb_len; guint8 tempchar; /* Get the length remaining */ |