diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-07-18 19:11:32 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-07-18 19:11:32 +0000 |
commit | 3f7e7672c9feb345f2ee9c9a14e1151b88f598c9 (patch) | |
tree | d357c244b5aec954d8451d8570d5f9a9d0ae95cb /epan/dissectors/packet-pppoe.c | |
parent | 7e6b1202c9f3d7d2504e7004eae6cb63047ffad6 (diff) |
Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings.
svn path=/trunk/; revision=38095
Diffstat (limited to 'epan/dissectors/packet-pppoe.c')
-rw-r--r-- | epan/dissectors/packet-pppoe.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/epan/dissectors/packet-pppoe.c b/epan/dissectors/packet-pppoe.c index a6c0205d4d..4d8456264d 100644 --- a/epan/dissectors/packet-pppoe.c +++ b/epan/dissectors/packet-pppoe.c @@ -1044,9 +1044,7 @@ void proto_reg_handoff_pppoed(void) static void dissect_pppoes(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { guint8 pppoe_code; - guint16 pppoe_session_id; guint16 reported_payload_length; - guint16 poe_tag; guint16 poe_tag_length; gint actual_payload_length; gint length, reported_length; @@ -1069,7 +1067,6 @@ static void dissect_pppoes(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) val_to_str(pppoe_code, code_vals, "Unknown")); } - pppoe_session_id = tvb_get_ntohs(tvb, 2); reported_payload_length = tvb_get_ntohs(tvb, 4); actual_payload_length = tvb_reported_length_remaining(tvb, 6); @@ -1088,7 +1085,6 @@ static void dissect_pppoes(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (PPPOE_TAG_CREDITS == tvb_get_ntohs(tvb, 6)) { tagstart = 6; - poe_tag = tvb_get_ntohs(tvb, tagstart); poe_tag_length = tvb_get_ntohs(tvb, tagstart + 2); /* Create tags subtree */ |