summaryrefslogtreecommitdiff
path: root/tools/wireshark_gen.py
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2013-01-21 22:38:11 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2013-01-21 22:38:11 +0000
commit86dd0abcd35a56f0e460291818ad6da0511dd45d (patch)
tree83a53cbdbb84f3d57c61cd96a8ec08ba97f08ec9 /tools/wireshark_gen.py
parent8189823b7331f5d538e132ff632b66cef14f3b1d (diff)
downloadwireshark-86dd0abcd35a56f0e460291818ad6da0511dd45d.tar.gz
Fix for CID 761911-761984 and CID 761985-761994.
Try to convince Coverity that the passed in item pointer is appreciated, but not used. svn path=/trunk/; revision=47201
Diffstat (limited to 'tools/wireshark_gen.py')
-rwxr-xr-xtools/wireshark_gen.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/wireshark_gen.py b/tools/wireshark_gen.py
index 7101bfc45b..6e975beed6 100755
--- a/tools/wireshark_gen.py
+++ b/tools/wireshark_gen.py
@@ -1908,7 +1908,9 @@ class wireshark_gen_C:
template_helper_function_start = """\
static void
decode_@sname@(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, proto_item *item _U_, int *offset _U_, MessageHeader *header, const gchar *operation _U_, gboolean stream_is_big_endian _U_)
-{"""
+{
+ (void)item; /* Avoid coverity param_set_but_unused parse warning */
+"""
template_helper_function_end = """\
}
@@ -2548,6 +2550,7 @@ decode_ex_@sname@(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U
static void
decode_@sname@_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, proto_item *item _U_, int *offset _U_, MessageHeader *header _U_, const gchar *operation _U_, gboolean stream_is_big_endian _U_)
{
+ (void)item; /* Avoid coverity param_set_but_unused parse warning */
"""
template_struct_helper_function_end = """\