Commit 75b2be7
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>1 parent f44cbf6 commit 75b2be7
2 files changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
180 | 178 | | |
181 | 179 | | |
182 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
183 | 188 | | |
184 | 189 | | |
185 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
| |||
194 | 192 | | |
195 | 193 | | |
196 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
197 | 202 | | |
198 | 203 | | |
199 | 204 | | |
| |||
0 commit comments