aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-icmp.c
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2012-01-04 23:15:50 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2012-01-04 23:15:50 +0000
commita8b1c423b9710436ef61012672d0af8af991021e (patch)
tree7228aabd6d3c4d6ae1fea92459f11585d0ec400d /epan/dissectors/packet-icmp.c
parentf17cc01f63e70c37c6822e1bf8a71b7b61fa151b (diff)
Fix several warnings turned error of type:
variable ‘mtu_flag’ set but not used [-Werror=unused-but-set-variable] git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40380 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-icmp.c')
-rw-r--r--epan/dissectors/packet-icmp.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/epan/dissectors/packet-icmp.c b/epan/dissectors/packet-icmp.c
index eea18bcbf3..0becf135ac 100644
--- a/epan/dissectors/packet-icmp.c
+++ b/epan/dissectors/packet-icmp.c
@@ -492,7 +492,6 @@ dissect_mpls_extended_payload_object(tvbuff_t *tvb, gint offset, proto_tree *ext
{
guint16 obj_length, obj_trunc_length;
- gint obj_end_offset;
gboolean unknown_object;
guint8 c_type;
unknown_object = FALSE;
@@ -500,7 +499,6 @@ dissect_mpls_extended_payload_object(tvbuff_t *tvb, gint offset, proto_tree *ext
obj_length = tvb_get_ntohs(tvb, offset);
obj_trunc_length = MIN(obj_length, tvb_reported_length_remaining(tvb, offset));
- obj_end_offset = offset + obj_trunc_length;
/* C-Type */
c_type = tvb_get_guint8(tvb, offset + 3);
@@ -658,11 +656,9 @@ dissect_interface_information_object(tvbuff_t *tvb, gint offset, proto_tree *ext
gint obj_end_offset;
guint8 c_type;
gboolean unknown_object;
- guint8 interface_role;
guint8 if_index_flag;
guint8 ipaddr_flag;
guint8 name_flag;
- guint8 mtu_flag;
guint32 if_index;
guint16 afi;
struct e_in6_addr ipaddr_v6;
@@ -685,11 +681,9 @@ dissect_interface_information_object(tvbuff_t *tvb, gint offset, proto_tree *ext
return TRUE;
}
- interface_role = (c_type & INT_INFO_INTERFACE_ROLE) >> 6;
if_index_flag = (c_type & INT_INFO_IFINDEX) >> 3;
ipaddr_flag = (c_type & INT_INFO_IPADDR) >> 2;
name_flag = (c_type & INT_INFO_NAME) >> 1;
- mtu_flag = (c_type & INT_INFO_MTU);
{
static const gint *c_type_fields[] = {