diff options
| author | Martin Hořeňovský | 2020-03-18 20:59:25 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-03-19 09:45:41 +0100 |
| commit | b7b346c3e56030d19ac58d33326b69bbaf226552 (patch) | |
| tree | 1a75042517e65540e55c6d2b2b863b19ffdc1ac1 /projects/SelfTest/UsageTests/ToStringByte.tests.cpp | |
| parent | 9e09d79946b0c4afd815341684c7c4dc4f40c20b (diff) | |
| download | catch3-b7b346c3e56030d19ac58d33326b69bbaf226552.tar.gz | |
Make warnings in assertions fire for GCC/Clang again
The old code caused warnings to fire under MSVC, and Clang <3.8.
I could not find a GCC version where it worked, but I assume that it
did at some point.
This new code causes all of MSVC, GCC, Clang, in current versions,
to emit signed/unsigned comparison warning in test like this:
```cpp
TEST_CASE() {
int32_t i = -1;
uint32_t j = 1;
REQUIRE(i != j);
}
```
Where previously only MSVC would emit the warning.
Fixes #1880
Diffstat (limited to 'projects/SelfTest/UsageTests/ToStringByte.tests.cpp')
0 files changed, 0 insertions, 0 deletions