aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-arp.c
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2012-08-02 18:12:59 +0000
committerJörg Mayer <jmayer@loplof.de>2012-08-02 18:12:59 +0000
commit262c6c664a114a1842a1a77069f524063a6f1d8c (patch)
treed80bcd267ceb9a6dd3bc807d0f0513ce43fb150f /epan/dissectors/packet-arp.c
parent86bf808c152d58ba020b8431d7433ba680f4919c (diff)
Fix:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-arp.c:1239:42: error: variable ‘tha_val’ set but not used [-Werror=unused-but-set-variable] /home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-arp.c:1239:22: error: variable ‘sha_val’ set but not used [-Werror=unused-but-set-variable] svn path=/trunk/; revision=44213
Diffstat (limited to 'epan/dissectors/packet-arp.c')
-rw-r--r--epan/dissectors/packet-arp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-arp.c b/epan/dissectors/packet-arp.c
index 87e400e930..41d5624c0f 100644
--- a/epan/dissectors/packet-arp.c
+++ b/epan/dissectors/packet-arp.c
@@ -1236,7 +1236,7 @@ dissect_ax25arp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_item *ti;
const gchar *op_str;
int sha_offset, spa_offset, tha_offset, tpa_offset;
- const guint8 *sha_val, *spa_val, *tha_val, *tpa_val;
+ const guint8 /* *sha_val, */ *spa_val, /* *tha_val, */ *tpa_val;
gboolean is_gratuitous;
/* Hardware Address Type */
@@ -1298,9 +1298,9 @@ dissect_ax25arp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
return;
}
- sha_val = tvb_get_ptr(tvb, sha_offset, ar_hln);
+ /* sha_val = tvb_get_ptr(tvb, sha_offset, ar_hln); */
spa_val = tvb_get_ptr(tvb, spa_offset, ar_pln);
- tha_val = tvb_get_ptr(tvb, tha_offset, ar_hln);
+ /* tha_val = tvb_get_ptr(tvb, tha_offset, ar_hln); */
tpa_val = tvb_get_ptr(tvb, tpa_offset, ar_pln);
/* ARP requests/replies with the same sender and target protocol