diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-06-20 01:13:21 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-06-20 01:13:21 +0000 |
commit | 91191c6c003ac2502626ae9bfb316e52fb6aa0a8 (patch) | |
tree | f0aa07f73632d1aa064e1a9af2fac2aa13b757e2 /epan/dissectors/packet-lapdm.c | |
parent | b8e727ac8d7d5f77c9244786056eb8da185e0022 (diff) | |
download | wireshark-91191c6c003ac2502626ae9bfb316e52fb6aa0a8.tar.gz |
Fix some gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings;
(Code commented out since it may be required in the future (at least in some cases).
svn path=/trunk/; revision=37723
Diffstat (limited to 'epan/dissectors/packet-lapdm.c')
-rw-r--r-- | epan/dissectors/packet-lapdm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-lapdm.c b/epan/dissectors/packet-lapdm.c index 18cf0c72a1..b770e22e8f 100644 --- a/epan/dissectors/packet-lapdm.c +++ b/epan/dissectors/packet-lapdm.c @@ -215,7 +215,7 @@ dissect_lapdm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { proto_tree *lapdm_tree, *addr_tree, *length_tree; proto_item *lapdm_ti, *addr_ti, *length_ti; - guint8 addr, length, cr, sapi, len, n_s; + guint8 addr, length, cr, sapi, len/*, n_s*/; int control; gboolean m; tvbuff_t *payload; @@ -272,7 +272,7 @@ dissect_lapdm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) sapi = (addr & LAPDM_SAPI) >> LAPDM_SAPI_SHIFT; len = (length & LAPDM_LEN) >> LAPDM_LEN_SHIFT; - n_s = (control & XDLC_N_S_MASK) >> XDLC_N_S_SHIFT; + /*n_s = (control & XDLC_N_S_MASK) >> XDLC_N_S_SHIFT;*/ m = (length & LAPDM_M) >> LAPDM_M_SHIFT; available_length = tvb_length(tvb) - LAPDM_HEADER_LEN; |