aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cip.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2012-01-04 17:34:36 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2012-01-04 17:34:36 +0000
commit360f156220f921d851872638de9e3995ca4b35e3 (patch)
tree93200c7bb3f1077d2ec4ffe27b3f9fd03db4efcd /epan/dissectors/packet-cip.c
parent00dd4b455e791d7bbeba19cc09e5e8996d235f75 (diff)
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40372
Diffstat (limited to 'epan/dissectors/packet-cip.c')
-rw-r--r--epan/dissectors/packet-cip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-cip.c b/epan/dissectors/packet-cip.c
index 8898a4e283..16251d8600 100644
--- a/epan/dissectors/packet-cip.c
+++ b/epan/dissectors/packet-cip.c
@@ -4616,7 +4616,7 @@ dissect_cip_class_mb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
* Dissector for CIP Connection Configuration Object
*
************************************************/
-static void
+static int
dissect_cip_cco_all_attribute_common( proto_tree *cmd_tree, tvbuff_t *tvb, int offset, int item_length, packet_info *pinfo)
{
proto_item *pi, *tdii, *ncpi, *iomapi, *confgi;
@@ -4786,6 +4786,7 @@ dissect_cip_cco_all_attribute_common( proto_tree *cmd_tree, tvbuff_t *tvb, int o
variable_data_size += 18;
}
+return variable_data_size;
}
static void