diff options
author | Gerald Combs <gerald@wireshark.org> | 2019-10-04 09:51:50 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2019-10-04 17:16:37 +0000 |
commit | efb6fa1e03516aeb25184c766d047b6c55590844 (patch) | |
tree | f98561c28f33167ee51b15d8fe52e79fe501266e | |
parent | e7f5ba6aa7d6d56a7c375c02c911f61fc257d51f (diff) |
AMP: Remove a self-assignment.
Fix
../epan/dissectors/packet-amp.c:411:11: error: explicitly assigning value of variable of type 'packet_info *' (aka 'struct _packet_info *') to itself [-Werror,-Wself-assign]
pinfo = pinfo;
~~~~~ ^ ~~~~~
Change-Id: I8c8b03672d5aaae65b23449c35c150ee8ee0dae6
Reviewed-on: https://code.wireshark.org/review/34711
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
-rw-r--r-- | epan/dissectors/packet-amp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-amp.c b/epan/dissectors/packet-amp.c index f7f550b085..fb47494f25 100644 --- a/epan/dissectors/packet-amp.c +++ b/epan/dissectors/packet-amp.c @@ -376,7 +376,7 @@ static cborObj cbor_info(tvbuff_t *tvb, int offset) } void -dissect_amp_as_subtree(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) +dissect_amp_as_subtree(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset) { guint64 messages = 0; unsigned int i=0; @@ -408,8 +408,6 @@ dissect_amp_as_subtree(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int int reportHasTimestamp = 0; int report_types_offset = 0; - pinfo = pinfo; - amp_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_amp_proto, &payload_item, "Payload Data: AMP Protocol"); |