aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fix.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-06-19 18:47:35 +0000
committerBill Meier <wmeier@newsguy.com>2011-06-19 18:47:35 +0000
commitd2269ce7d563c9343f4b71da4cd09bc6fb5080e7 (patch)
tree1bb1d49e5bd617abce454558411c1a7e0c4c4722 /epan/dissectors/packet-fix.c
parentdfdeeb559535e20b78112405baf3d4f87fe2a961 (diff)
Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings.
svn path=/trunk/; revision=37716
Diffstat (limited to 'epan/dissectors/packet-fix.c')
-rw-r--r--epan/dissectors/packet-fix.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/epan/dissectors/packet-fix.c b/epan/dissectors/packet-fix.c
index e645e61d98..890b32939c 100644
--- a/epan/dissectors/packet-fix.c
+++ b/epan/dissectors/packet-fix.c
@@ -235,7 +235,6 @@ dissect_fix_packet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
char *value;
char *tag_str;
fix_parameter *tag;
- int check_sum = 0;
/* Make entries in Protocol column and Info column on summary display */
col_set_str(pinfo->cinfo, COL_PROTOCOL, "FIX");
@@ -355,7 +354,6 @@ dissect_fix_packet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
for (j = 0; j < field_offset; j++, data++) {
sum += *data;
}
- check_sum = 1;
sum_ok = (atoi(value) == sum);
if (sum_ok) {
item = proto_tree_add_string_format_value(fix_tree, fix_fields[i].hf_id, tvb, field_offset, tag->field_len,