Skip to content

Commit

Permalink
Fixed clang-tidy bugprone-assert-side-effect warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
seanm committed Mar 8, 2021
1 parent a38678d commit b1f0b1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cache_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,7 @@ execute_flush_op(H5F_t *file_ptr, struct test_entry_t *entry_ptr, struct flush_o
HDassert(cache_ptr != NULL);
HDassert(cache_ptr->magic == H5C__H5C_T_MAGIC);
HDassert(entry_ptr != NULL);
HDassert(entry_ptr = entry_ptr->self);
HDassert(entry_ptr == entry_ptr->self);
HDassert(entry_ptr->header.addr == entry_ptr->addr);
HDassert((entry_ptr->flush_op_self_resize_in_progress) || (entry_ptr->header.size == entry_ptr->size));
HDassert(op_ptr != NULL);
Expand Down Expand Up @@ -2243,7 +2243,7 @@ resize_entry(H5F_t *file_ptr, int32_t type, int32_t idx, size_t new_size, hbool_
}
else {

HDassert(entry_ptr->size = (entry_ptr->header).size);
HDassert(entry_ptr->size == (entry_ptr->header).size);
}
}
}
Expand Down

0 comments on commit b1f0b1a

Please sign in to comment.