summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-aprs.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2012-10-26 21:47:02 +0000
committerBill Meier <wmeier@newsguy.com>2012-10-26 21:47:02 +0000
commit84f5f910226e2d691321d17b6879ab35f09fe590 (patch)
tree2224bb06045450da7a1ad5073b94a8fec5b5bea6 /epan/dissectors/packet-aprs.c
parent31b1b3780cea7680adf62a2491201a5d204dbbe2 (diff)
downloadwireshark-84f5f910226e2d691321d17b6879ab35f09fe590.tar.gz
Fix [-Wunused-but-set-variable] warnings.
svn path=/trunk/; revision=45803
Diffstat (limited to 'epan/dissectors/packet-aprs.c')
-rw-r--r--epan/dissectors/packet-aprs.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/epan/dissectors/packet-aprs.c b/epan/dissectors/packet-aprs.c
index 61ec064ae9..2cc5e07c3d 100644
--- a/epan/dissectors/packet-aprs.c
+++ b/epan/dissectors/packet-aprs.c
@@ -1152,8 +1152,6 @@ aprs_item( proto_tree *aprs_tree, tvbuff_t *tvb, int offset )
static int
aprs_3rd_party( proto_tree *aprs_tree, tvbuff_t *tvb, int offset, int data_len )
{
- proto_item *ti;
-
/* If the type of the hf[] entry pointed to by hfindex is FT_BYTES or FT_STRING */
/* then data_len == -1 is allowed and means "remainder of the tvbuff" */
if ( data_len == -1 )
@@ -1164,7 +1162,7 @@ aprs_3rd_party( proto_tree *aprs_tree, tvbuff_t *tvb, int offset, int data_len )
return offset; /* there's no data */
#endif
}
- ti = proto_tree_add_item( aprs_tree, hf_aprs_third_party, tvb, offset, data_len, ENC_NA );
+ proto_tree_add_item( aprs_tree, hf_aprs_third_party, tvb, offset, data_len, ENC_NA );
/* tnc-2 */
/* aea */
return offset + data_len;
@@ -1173,8 +1171,6 @@ aprs_3rd_party( proto_tree *aprs_tree, tvbuff_t *tvb, int offset, int data_len )
static int
aprs_default_string( proto_tree *aprs_tree, tvbuff_t *tvb, int offset, int data_len, int hfindex )
{
- proto_item *ti;
-
/* Assumption: hfindex points to an hf[] entry with type FT_STRING; should be validated ? */
/* If the type of the hf[] entry pointed to by hfindex is FT_STRING */
/* then data_len == -1 is allowed and means "remainder of the tvbuff" */
@@ -1186,15 +1182,13 @@ aprs_default_string( proto_tree *aprs_tree, tvbuff_t *tvb, int offset, int data_
return offset; /* there's no data */
#endif
}
- ti = proto_tree_add_item( aprs_tree, hfindex, tvb, offset, data_len, ENC_ASCII|ENC_NA );
+ proto_tree_add_item( aprs_tree, hfindex, tvb, offset, data_len, ENC_ASCII|ENC_NA );
return offset + data_len;
}
static int
aprs_default_bytes( proto_tree *aprs_tree, tvbuff_t *tvb, int offset, int data_len, int hfindex )
{
- proto_item *ti;
-
/* Assumption: hfindex points to an hf[] entry with type FT_BYTES; should be validated ? */
/* If the type of the hf[] entry pointed to by hfindex is FT_BYTES */
/* then data_len == -1 is allowed and means "remainder of the tvbuff" */
@@ -1206,7 +1200,7 @@ aprs_default_bytes( proto_tree *aprs_tree, tvbuff_t *tvb, int offset, int data_l
return offset; /* there's no data */
#endif
}
- ti = proto_tree_add_item( aprs_tree, hfindex, tvb, offset, data_len, ENC_NA );
+ proto_tree_add_item( aprs_tree, hfindex, tvb, offset, data_len, ENC_NA );
return offset + data_len;
}