diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2011-04-22 15:53:34 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2011-04-22 15:53:34 +0000 |
commit | e7a716144d34a538d933ddf30100ef5208c5aaf4 (patch) | |
tree | e182c9f435f054ab414ce888706a873873e3e286 /epan/dissectors | |
parent | 64e31d0b0d26fb7c8e941c2b03db8117ec823a5e (diff) | |
download | wireshark-e7a716144d34a538d933ddf30100ef5208c5aaf4.tar.gz |
Use _U_ for unused function parameters instead of assigning a variable
to itself. Found by clang compiler.
svn path=/trunk/; revision=36813
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-ansi_637.c | 3 | ||||
-rw-r--r-- | epan/dissectors/packet-ansi_683.c | 8 | ||||
-rw-r--r-- | epan/dissectors/packet-ansi_a.c | 17 |
3 files changed, 7 insertions, 21 deletions
diff --git a/epan/dissectors/packet-ansi_637.c b/epan/dissectors/packet-ansi_637.c index fd7b54b0ef..39d6be0873 100644 --- a/epan/dissectors/packet-ansi_637.c +++ b/epan/dissectors/packet-ansi_637.c @@ -1715,11 +1715,10 @@ trans_param_subaddress(tvbuff_t *tvb, proto_tree *tree, guint len, guint32 offse } static void -trans_param_bearer_reply_opt(tvbuff_t *tvb, proto_tree *tree, guint len, guint32 offset, gchar *add_string, int string_len) +trans_param_bearer_reply_opt(tvbuff_t *tvb, proto_tree *tree, guint len _U_, guint32 offset, gchar *add_string, int string_len) { guint8 oct; - len = len; oct = tvb_get_guint8(tvb, offset); other_decode_bitfield_value(ansi_637_bigbuf, oct, 0xfc, 8); diff --git a/epan/dissectors/packet-ansi_683.c b/epan/dissectors/packet-ansi_683.c index 6b481a15db..eba55d2178 100644 --- a/epan/dissectors/packet-ansi_683.c +++ b/epan/dissectors/packet-ansi_683.c @@ -1159,16 +1159,10 @@ rev_param_block_nam_cdma(tvbuff_t *tvb, proto_tree *tree, guint len, guint32 off * 4.5.2.4 */ static void -param_block_nam_imsi_t(tvbuff_t *tvb, proto_tree *tree, guint len, guint32 offset) +param_block_nam_imsi_t(tvbuff_t *tvb, proto_tree *tree, guint len _U_, guint32 offset) { guint32 value; - /* - * XXX avoid warning for now, may use this variable - * for validation later - */ - len = len; - value = tvb_get_guint8(tvb, offset); other_decode_bitfield_value(bigbuf, value, 0x80, 8); diff --git a/epan/dissectors/packet-ansi_a.c b/epan/dissectors/packet-ansi_a.c index 780f1bf1a2..858a1790cf 100644 --- a/epan/dissectors/packet-ansi_a.c +++ b/epan/dissectors/packet-ansi_a.c @@ -1158,13 +1158,12 @@ elem_return_cause(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len _U_ * IOS 6.2.2.8 */ static guint8 -elem_rf_chan_id(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len) +elem_rf_chan_id(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len _U_, gchar *add_string, int string_len) { guint8 oct; guint32 value; guint32 curr_offset; - len = len; curr_offset = offset; proto_tree_add_text(tree, tvb, curr_offset, 1, @@ -1271,12 +1270,11 @@ elem_sr_id(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *ad * IOS 6.2.2.9 */ static guint8 -elem_sid(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len) +elem_sid(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len _U_, gchar *add_string, int string_len) { guint32 value; guint32 curr_offset; - len = len; curr_offset = offset; value = tvb_get_ntohs(tvb, curr_offset); @@ -2301,12 +2299,11 @@ elem_mid(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_ * IOS 6.2.2.17 */ static guint8 -elem_sci(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len) +elem_sci(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len _U_, gchar *add_string, int string_len) { guint8 oct; guint32 curr_offset; - len = len; curr_offset = offset; oct = tvb_get_guint8(tvb, curr_offset); @@ -2809,12 +2806,11 @@ elem_cell_id_list(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gc * IOS 6.2.2.22 */ static guint8 -elem_cic(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len) +elem_cic(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len _U_, gchar *add_string, int string_len) { guint32 value; guint32 curr_offset; - len = len; curr_offset = offset; value = tvb_get_ntohs(tvb, curr_offset); @@ -2846,14 +2842,13 @@ elem_cic(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_ * IOS 6.2.2.23 */ static guint8 -elem_cic_ext(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_string, int string_len) +elem_cic_ext(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len _U_, gchar *add_string, int string_len) { guint8 oct; guint32 value; guint32 curr_offset; const gchar *str; - len = len; curr_offset = offset; value = tvb_get_ntohs(tvb, curr_offset); @@ -2915,7 +2910,6 @@ elem_ssci(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add guint8 oct; guint32 curr_offset; - len = len; curr_offset = offset; oct = tvb_get_guint8(tvb, curr_offset); @@ -7513,7 +7507,6 @@ elem_is2000_cause(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gc { guint32 curr_offset; - add_string = add_string; curr_offset = offset; proto_tree_add_text(tree, tvb, curr_offset, len, "IS-95/IS-2000 Cause Information"); |