Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a compile warning with g++ 13.2.0. (#207)
* Fix a compile warning with g++ 13.2.0. When building the tests with g++ 13.2.0, it complains that the EXPECT_LONG_DOUBLE_EQ macro has no effect. That ends up being true; because it is just a x == y, with no EXPECT statement around it, it actually does nothing. Here, I just remove this macro because it is unnecessary; we can just do EXPECT_TRUE(x == y) and get the same effect with less code. Signed-off-by: Chris Lalancette <clalancette@gmail.com> * Revert "Fix a compile warning with g++ 13.2.0." This reverts commit 28b32de. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refactor EXPECT_LONG_DOUBLE_EQ. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Make expectations be checked. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Chris Lalancette <clalancette@gmail.com> Signed-off-by: Miguel Company <miguelcompany@eprosima.com> Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
- Loading branch information