(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/profinet/packet-pn-dcp.c) |
| |
| 746 | | | proto_tree *tree, proto_item *block_item, proto_item *dcp_item, |
| 747 | | | guint8 service_id _U_, gboolean is_response _U_) |
| 748 | | | { |
| 749 | | | guint8 suboption; |
| 750 | | | guint16 block_length; |
| 751 | | | |
| 752 | | | |
| 753 | | | offset = dissect_pn_uint8(tvb, offset, pinfo, tree, hf_pn_dcp_suboption_manuf, &suboption); |
| 754 | | | offset = dissect_pn_uint16(tvb, offset, pinfo, tree, hf_pn_dcp_block_length, &block_length); |
| 755 | | | |
| 756 | | | switch(suboption) { |
Empty switch Statement
Body of switch has no effect. This warning could be triggered if: - the body contains no code, or
- all cases share the same code, or
- the body is removed by the preprocessor, or
- all the macros used in the body expand to nothing.
|
|
| 757 | | | default: |
| 758 | | | pn_append_info(pinfo, dcp_item, ", Manufacturer Specific"); |
| 759 | | | proto_item_append_text(block_item, "Manufacturer Specific"); |
| 760 | | | offset = dissect_pn_undecoded(tvb, offset, pinfo, tree, block_length); |
| 761 | | | } |
| 762 | | | |
| 763 | | | return offset; |
| 764 | | | } |
| 765 | | | |
| 766 | | | |
| |