Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
authoralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 6 Feb 2012 22:04:24 +0000 (22:04 +0000)
committeralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 6 Feb 2012 22:04:24 +0000 (22:04 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40892 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-dpnss.c

index 7a558387dcf4912c56303d510ccfe5b90fcad93b..64697791a127b4fd0c734e50a6a48e939ea99cee 100644 (file)
@@ -1159,7 +1159,7 @@ dissect_dpnss_sup_info_str(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tr
 }
 
 
-static void
+static int
 dissect_dpnss_LbL_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
     proto_item *sic_field_item, *ind_field_item;
@@ -1251,10 +1251,11 @@ dissect_dpnss_LbL_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
             break;
         }
     }
+       return offset;
 }
 
 
-static void
+static int
 dissect_dpnss_e2e_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
     proto_item *sel_field_item, *sic_field_item, *ind_field_item;
@@ -1349,9 +1350,10 @@ dissect_dpnss_e2e_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
             break;
         }
     }
+    return offset;
 }
 
-static void
+static int
 dissect_dpnss_cc_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
     proto_item *sel_field_item, *sic_field_item, *ind_field_item;
@@ -1479,6 +1481,7 @@ dissect_dpnss_cc_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
             break;
         }
     }
+    return offset;
 }
 /* Code to actually dissect the packets */
 static void