From 360f156220f921d851872638de9e3995ca4b35e3 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Wed, 4 Jan 2012 17:34:36 +0000 Subject: Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang svn path=/trunk/; revision=40372 --- epan/dissectors/packet-cip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'epan/dissectors/packet-cip.c') 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 -- cgit v1.2.3