diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2013-01-22 22:07:44 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2013-01-22 22:07:44 +0000 |
commit | 6e1c54c8fd2ffad18de05a839cebcf07613c5e5b (patch) | |
tree | 0d9af3bf6ea7d8b13459487aeab3943847539e5e /epan/dissectors/packet-tango.c | |
parent | 1c7c18b7257d4ce93fd34f19755da82e57191b89 (diff) |
Fix for CID 761911-761984 and CID 761985-761994.
Try to convince Coverity that the passed in item pointer is appreciated,
but not used.
This time see if it pleases the Windows compiler too.
svn path=/trunk/; revision=47217
Diffstat (limited to 'epan/dissectors/packet-tango.c')
-rw-r--r-- | epan/dissectors/packet-tango.c | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/epan/dissectors/packet-tango.c b/epan/dissectors/packet-tango.c index 01fec5b552..b048de4f22 100644 --- a/epan/dissectors/packet-tango.c +++ b/epan/dissectors/packet-tango.c @@ -455,6 +455,8 @@ decode_ex_Tango_DevFailed(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree guint32 i_Tango_DevFailed_errors; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + u_octet4_loop_Tango_DevFailed_errors = get_CDR_ulong(tvb, offset, stream_is_big_endian, boundary); /* coverity[returned_pointer] */ item = proto_tree_add_uint(tree, hf_Tango_DevFailed_errors, tvb,*offset-4, 4, u_octet4_loop_Tango_DevFailed_errors); @@ -479,6 +481,8 @@ decode_ex_Tango_MultiDevFailed(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_ guint32 i_Tango_MultiDevFailed_errors; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + u_octet4_loop_Tango_MultiDevFailed_errors = get_CDR_ulong(tvb, offset, stream_is_big_endian, boundary); /* coverity[returned_pointer] */ item = proto_tree_add_uint(tree, hf_Tango_MultiDevFailed_errors, tvb,*offset-4, 4, u_octet4_loop_Tango_MultiDevFailed_errors); @@ -558,6 +562,8 @@ decode_get_Tango_Device_state_at(tvbuff_t *tvb _U_, packet_info *pinfo _U_, prot guint32 u_octet4; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + u_octet4 = get_CDR_enum(tvb,offset,stream_is_big_endian, boundary); /* coverity[returned_pointer] */ item = proto_tree_add_uint(tree, hf_get_Tango_Device_state_state, tvb, *offset-4, 4, u_octet4); @@ -637,6 +643,8 @@ decode_Tango_Device_get_attribute_config(tvbuff_t *tvb _U_, packet_info *pinfo _ guint32 i_Tango_Device_get_attribute_config_return; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + switch(header->message_type) { case Request: u_octet4_loop_Tango_Device_get_attribute_config_names = get_CDR_ulong(tvb, offset, stream_is_big_endian, boundary); @@ -692,6 +700,8 @@ decode_Tango_Device_set_attribute_config(tvbuff_t *tvb _U_, packet_info *pinfo _ guint32 i_Tango_Device_set_attribute_config_new_conf; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + switch(header->message_type) { case Request: u_octet4_loop_Tango_Device_set_attribute_config_new_conf = get_CDR_ulong(tvb, offset, stream_is_big_endian, boundary); @@ -741,6 +751,8 @@ decode_Tango_Device_read_attributes(tvbuff_t *tvb _U_, packet_info *pinfo _U_, p guint32 i_Tango_Device_read_attributes_return; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + switch(header->message_type) { case Request: u_octet4_loop_Tango_Device_read_attributes_names = get_CDR_ulong(tvb, offset, stream_is_big_endian, boundary); @@ -796,6 +808,8 @@ decode_Tango_Device_write_attributes(tvbuff_t *tvb _U_, packet_info *pinfo _U_, guint32 i_Tango_Device_write_attributes_values; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + switch(header->message_type) { case Request: u_octet4_loop_Tango_Device_write_attributes_values = get_CDR_ulong(tvb, offset, stream_is_big_endian, boundary); @@ -874,6 +888,8 @@ decode_Tango_Device_black_box(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_t guint32 i_Tango_Device_black_box_return; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + switch(header->message_type) { case Request: proto_tree_add_int(tree, hf_Tango_Device_black_box_n, tvb, *offset-4, 4, get_CDR_long(tvb,offset,stream_is_big_endian, boundary)); @@ -952,6 +968,8 @@ decode_Tango_Device_command_list_query(tvbuff_t *tvb _U_, packet_info *pinfo _U_ guint32 i_Tango_Device_command_list_query_return; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + switch(header->message_type) { case Request: break; @@ -1030,6 +1048,8 @@ decode_Tango_Device_2_command_inout_2(tvbuff_t *tvb _U_, packet_info *pinfo _U_, guint32 u_octet4; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + switch(header->message_type) { case Request: giop_add_CDR_string(tree, tvb, offset, stream_is_big_endian, boundary, hf_Tango_Device_2_command_inout_2_command); @@ -1077,6 +1097,8 @@ decode_Tango_Device_2_read_attributes_2(tvbuff_t *tvb _U_, packet_info *pinfo _U guint32 i_Tango_Device_2_read_attributes_2_return; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + switch(header->message_type) { case Request: u_octet4_loop_Tango_Device_2_read_attributes_2_names = get_CDR_ulong(tvb, offset, stream_is_big_endian, boundary); @@ -1138,6 +1160,8 @@ decode_Tango_Device_2_get_attribute_config_2(tvbuff_t *tvb _U_, packet_info *pin guint32 i_Tango_Device_2_get_attribute_config_2_return; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + switch(header->message_type) { case Request: u_octet4_loop_Tango_Device_2_get_attribute_config_2_names = get_CDR_ulong(tvb, offset, stream_is_big_endian, boundary); @@ -1193,6 +1217,8 @@ decode_Tango_Device_2_command_list_query_2(tvbuff_t *tvb _U_, packet_info *pinfo guint32 i_Tango_Device_2_command_list_query_2_return; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + switch(header->message_type) { case Request: break; @@ -1272,6 +1298,8 @@ decode_Tango_Device_2_command_inout_history_2(tvbuff_t *tvb _U_, packet_info *pi guint32 i_Tango_Device_2_command_inout_history_2_return; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + switch(header->message_type) { case Request: giop_add_CDR_string(tree, tvb, offset, stream_is_big_endian, boundary, hf_Tango_Device_2_command_inout_history_2_command); @@ -1321,6 +1349,8 @@ decode_Tango_Device_2_read_attribute_history_2(tvbuff_t *tvb _U_, packet_info *p guint32 i_Tango_Device_2_read_attribute_history_2_return; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + switch(header->message_type) { case Request: giop_add_CDR_string(tree, tvb, offset, stream_is_big_endian, boundary, hf_Tango_Device_2_read_attribute_history_2_name); @@ -1373,6 +1403,8 @@ decode_Tango_Device_3_read_attributes_3(tvbuff_t *tvb _U_, packet_info *pinfo _U guint32 i_Tango_Device_3_read_attributes_3_return; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + switch(header->message_type) { case Request: u_octet4_loop_Tango_Device_3_read_attributes_3_names = get_CDR_ulong(tvb, offset, stream_is_big_endian, boundary); @@ -1432,6 +1464,8 @@ decode_Tango_Device_3_write_attributes_3(tvbuff_t *tvb _U_, packet_info *pinfo _ guint32 i_Tango_Device_3_write_attributes_3_values; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + switch(header->message_type) { case Request: u_octet4_loop_Tango_Device_3_write_attributes_3_values = get_CDR_ulong(tvb, offset, stream_is_big_endian, boundary); @@ -1479,6 +1513,8 @@ decode_Tango_Device_3_read_attribute_history_3(tvbuff_t *tvb _U_, packet_info *p guint32 i_Tango_Device_3_read_attribute_history_3_return; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + switch(header->message_type) { case Request: giop_add_CDR_string(tree, tvb, offset, stream_is_big_endian, boundary, hf_Tango_Device_3_read_attribute_history_3_name); @@ -1562,6 +1598,8 @@ decode_Tango_Device_3_get_attribute_config_3(tvbuff_t *tvb _U_, packet_info *pin guint32 i_Tango_Device_3_get_attribute_config_3_return; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + switch(header->message_type) { case Request: u_octet4_loop_Tango_Device_3_get_attribute_config_3_names = get_CDR_ulong(tvb, offset, stream_is_big_endian, boundary); @@ -1617,6 +1655,8 @@ decode_Tango_Device_3_set_attribute_config_3(tvbuff_t *tvb _U_, packet_info *pin guint32 i_Tango_Device_3_set_attribute_config_3_new_conf; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + switch(header->message_type) { case Request: u_octet4_loop_Tango_Device_3_set_attribute_config_3_new_conf = get_CDR_ulong(tvb, offset, stream_is_big_endian, boundary); @@ -1665,6 +1705,8 @@ decode_Tango_DevVarLongStringArray_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, guint32 i_Tango_DevVarLongStringArray_svalue; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + u_octet4_loop_Tango_DevVarLongStringArray_lvalue = get_CDR_ulong(tvb, offset, stream_is_big_endian, boundary); /* coverity[returned_pointer] */ item = proto_tree_add_uint(tree, hf_Tango_DevVarLongStringArray_lvalue, tvb,*offset-4, 4, u_octet4_loop_Tango_DevVarLongStringArray_lvalue); @@ -1699,6 +1741,8 @@ decode_Tango_DevVarDoubleStringArray_st(tvbuff_t *tvb _U_, packet_info *pinfo _U guint32 i_Tango_DevVarDoubleStringArray_svalue; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + u_octet4_loop_Tango_DevVarDoubleStringArray_dvalue = get_CDR_ulong(tvb, offset, stream_is_big_endian, boundary); /* coverity[returned_pointer] */ item = proto_tree_add_uint(tree, hf_Tango_DevVarDoubleStringArray_dvalue, tvb,*offset-4, 4, u_octet4_loop_Tango_DevVarDoubleStringArray_dvalue); @@ -1762,6 +1806,8 @@ decode_Tango_DevCmdInfo_2_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tr guint32 u_octet4; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + giop_add_CDR_string(tree, tvb, offset, stream_is_big_endian, boundary, hf_Tango_DevCmdInfo_2_cmd_name); u_octet4 = get_CDR_enum(tvb,offset,stream_is_big_endian, boundary); @@ -1789,6 +1835,8 @@ decode_Tango_DevError_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree * guint32 u_octet4; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + giop_add_CDR_string(tree, tvb, offset, stream_is_big_endian, boundary, hf_Tango_DevError_reason); u_octet4 = get_CDR_enum(tvb,offset,stream_is_big_endian, boundary); @@ -1811,6 +1859,8 @@ decode_Tango_NamedDevError_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_t guint32 i_Tango_NamedDevError_err_list; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + giop_add_CDR_string(tree, tvb, offset, stream_is_big_endian, boundary, hf_Tango_NamedDevError_name); proto_tree_add_int(tree, hf_Tango_NamedDevError_index_in_call, tvb, *offset-4, 4, get_CDR_long(tvb,offset,stream_is_big_endian, boundary)); @@ -1839,6 +1889,8 @@ decode_Tango_AttributeConfig_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto guint32 i_Tango_AttributeConfig_extensions; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + giop_add_CDR_string(tree, tvb, offset, stream_is_big_endian, boundary, hf_Tango_AttributeConfig_name); u_octet4 = get_CDR_enum(tvb,offset,stream_is_big_endian, boundary); @@ -1900,6 +1952,8 @@ decode_Tango_AttributeConfig_2_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, pro guint32 i_Tango_AttributeConfig_2_extensions; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + giop_add_CDR_string(tree, tvb, offset, stream_is_big_endian, boundary, hf_Tango_AttributeConfig_2_name); u_octet4 = get_CDR_enum(tvb,offset,stream_is_big_endian, boundary); @@ -1963,6 +2017,8 @@ decode_Tango_AttributeValue_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_ guint32 u_octet4; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + get_CDR_any(tvb, pinfo, tree, item, offset, stream_is_big_endian, boundary, header); u_octet4 = get_CDR_enum(tvb,offset,stream_is_big_endian, boundary); @@ -2002,6 +2058,8 @@ decode_Tango_AttributeValue_3_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, prot guint32 i_Tango_AttributeValue_3_err_list; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + get_CDR_any(tvb, pinfo, tree, item, offset, stream_is_big_endian, boundary, header); u_octet4 = get_CDR_enum(tvb,offset,stream_is_big_endian, boundary); @@ -2042,6 +2100,8 @@ decode_Tango_ChangeEventProp_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto guint32 i_Tango_ChangeEventProp_extensions; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + giop_add_CDR_string(tree, tvb, offset, stream_is_big_endian, boundary, hf_Tango_ChangeEventProp_rel_change); giop_add_CDR_string(tree, tvb, offset, stream_is_big_endian, boundary, hf_Tango_ChangeEventProp_abs_change); @@ -2068,6 +2128,8 @@ decode_Tango_PeriodicEventProp_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, pro guint32 i_Tango_PeriodicEventProp_extensions; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + giop_add_CDR_string(tree, tvb, offset, stream_is_big_endian, boundary, hf_Tango_PeriodicEventProp_period); u_octet4_loop_Tango_PeriodicEventProp_extensions = get_CDR_ulong(tvb, offset, stream_is_big_endian, boundary); @@ -2092,6 +2154,8 @@ decode_Tango_ArchiveEventProp_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, prot guint32 i_Tango_ArchiveEventProp_extensions; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + giop_add_CDR_string(tree, tvb, offset, stream_is_big_endian, boundary, hf_Tango_ArchiveEventProp_rel_change); giop_add_CDR_string(tree, tvb, offset, stream_is_big_endian, boundary, hf_Tango_ArchiveEventProp_abs_change); @@ -2136,6 +2200,8 @@ decode_Tango_AttributeAlarm_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_ guint32 i_Tango_AttributeAlarm_extensions; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + giop_add_CDR_string(tree, tvb, offset, stream_is_big_endian, boundary, hf_Tango_AttributeAlarm_min_alarm); giop_add_CDR_string(tree, tvb, offset, stream_is_big_endian, boundary, hf_Tango_AttributeAlarm_max_alarm); @@ -2173,6 +2239,8 @@ decode_Tango_AttributeConfig_3_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, pro guint32 i_Tango_AttributeConfig_3_sys_extensions; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + giop_add_CDR_string(tree, tvb, offset, stream_is_big_endian, boundary, hf_Tango_AttributeConfig_3_name); u_octet4 = get_CDR_enum(tvb,offset,stream_is_big_endian, boundary); @@ -2285,6 +2353,8 @@ decode_Tango_DevCmdHistory_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_t guint32 i_Tango_DevCmdHistory_errors; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + /* Begin struct "Tango_TimeVal" */ decode_Tango_TimeVal_st(tvb, pinfo, tree, item, offset, header, operation, stream_is_big_endian); /* End struct "Tango_TimeVal" */ @@ -2315,6 +2385,8 @@ decode_Tango_DevAttrHistory_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_ guint32 i_Tango_DevAttrHistory_errors; /* Operation specific Variable declarations End */ + (void)item; /* Avoid coverity param_set_but_unused parse warning */ + proto_tree_add_boolean(tree, hf_Tango_DevAttrHistory_attr_failed, tvb, *offset-1, 1, get_CDR_boolean(tvb,offset)); /* Begin struct "Tango_AttributeValue" */ |