diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-07-28 17:57:11 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-07-28 17:57:11 +0000 |
commit | 103509672d24f3aebe9c7ecb621ea3aa17343b5c (patch) | |
tree | cf75688bd65c827eb6ed13d53cc50f1d9b6cd85c /epan/dissectors/packet-ppi.c | |
parent | b2aee4f4c2273eb704d3d904d1114c36525b1acd (diff) |
Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warning.
svn path=/trunk/; revision=38245
Diffstat (limited to 'epan/dissectors/packet-ppi.c')
-rw-r--r-- | epan/dissectors/packet-ppi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ppi.c b/epan/dissectors/packet-ppi.c index b10e1a7232..bca7835ebc 100644 --- a/epan/dissectors/packet-ppi.c +++ b/epan/dissectors/packet-ppi.c @@ -744,7 +744,7 @@ dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) guint32 n_ext_flags = 0; guint32 ampdu_id = 0; fragment_data *fd_head = NULL, *ft_fdh = NULL; - gint len_remain, pad_len = 0, ampdu_len = 0; + gint len_remain, /*pad_len = 0,*/ ampdu_len = 0; gint mpdu_count = 0; gchar *mpdu_str; gboolean first_mpdu = TRUE; @@ -896,9 +896,11 @@ dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (ppi_ampdu_reassemble && DOT11N_IS_AGGREGATE(n_ext_flags)) { len_remain = tvb_length_remaining(tvb, offset); +#if 0 /* XXX: pad_len never actually used ?? */ if (DOT11N_MORE_AGGREGATES(n_ext_flags)) { pad_len = PADDING4(len_remain); } +#endif pinfo->fragmented = TRUE; /* Make sure we aren't going to go past AGGREGATE_MAX |