Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang

svn path=/trunk/; revision=48507
This commit is contained in:
Alexis La Goutte 2013-03-23 13:08:56 +00:00
parent 4633fb157a
commit 202b6e7435
1 changed files with 8 additions and 8 deletions

View File

@ -1684,7 +1684,7 @@ static gint rtps_util_add_typecode(proto_tree *tree,
offset += 4;
/* Recursive decode seq typecode */
offset += rtps_util_add_typecode(
/*offset += */rtps_util_add_typecode(
tree,
tvb,
offset,
@ -1725,7 +1725,7 @@ static gint rtps_util_add_typecode(proto_tree *tree,
}
/* Recursive decode seq typecode */
offset += rtps_util_add_typecode(
/*offset += */rtps_util_add_typecode(
tree,
tvb,
offset,
@ -3273,7 +3273,7 @@ static gint dissect_parameter_sequence(proto_tree *tree,
"filterExpression",
NULL,
0);
temp_offset = rtps_util_add_seq_string(rtps_parameter_tree,
/*temp_offset = */rtps_util_add_seq_string(rtps_parameter_tree,
tvb,
temp_offset,
little_endian,
@ -5449,7 +5449,7 @@ static void dissect_INFO_REPLY_IP4(tvbuff_t *tvb,
if ((flags & FLAG_INFO_REPLY_IP4_M) != 0) {
rtps_util_add_locator_udp_v4(tree, pinfo, tvb, offset,
"multicastReplyLocator", little_endian);
offset += 8;
/*offset += 8;*/
}
}
@ -5569,7 +5569,7 @@ static void dissect_INFO_REPLY(tvbuff_t *tvb,
/* multicastReplyLocatorList */
if ((flags & FLAG_INFO_REPLY_M) != 0) {
offset = rtps_util_add_locator_list(tree, pinfo, tvb, offset, "multicastReplyLocatorList", little_endian);
/*offset = */rtps_util_add_locator_list(tree, pinfo, tvb, offset, "multicastReplyLocatorList", little_endian);
}
}
@ -5678,7 +5678,7 @@ static void dissect_RTPS_DATA(tvbuff_t *tvb,
offset += 12;
if ((flags & FLAG_RTPS_DATA_Q) != 0) {
offset = dissect_parameter_sequence(tree, pinfo, tvb, offset, little_endian,
/*offset = */dissect_parameter_sequence(tree, pinfo, tvb, offset, little_endian,
octets_to_next_header - (offset - old_offset) + 4,
"inlineQos", &status_info, vendor_id);
}
@ -5942,7 +5942,7 @@ static void dissect_RTPS_DATA_FRAG(tvbuff_t *tvb,
offset += 24;
if ((flags & FLAG_RTPS_DATA_FRAG_Q) != 0) {
offset = dissect_parameter_sequence(tree, pinfo, tvb, offset, little_endian,
/*offset = */dissect_parameter_sequence(tree, pinfo, tvb, offset, little_endian,
octets_to_next_header - (offset - old_offset) + 4,
"inlineQos", &status_info, vendor_id);
}
@ -6201,7 +6201,7 @@ static void dissect_RTPS_DATA_BATCH(tvbuff_t *tvb,
offset += 24;
if ((flags & FLAG_DATA_Q_RTPS2) != 0) {
offset = dissect_parameter_sequence(tree, pinfo, tvb, offset,
/*offset = */dissect_parameter_sequence(tree, pinfo, tvb, offset,
little_endian, octets_to_next_header - (offset - old_offset) + 4,
"inlineQos", &status_info, vendor_id);
}