diff options
| author | Jørgen P. Tjernø | 2021-08-27 16:59:35 -0700 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-08-30 23:26:51 +0200 |
| commit | 4b9780201bbebdd8468d74cf028c53da3c83a187 (patch) | |
| tree | 82281bbae887c51e2058130b90c2224b66dcd91c /projects/SelfTest/UsageTests/ToStringByte.tests.cpp | |
| parent | c4e3767e265808590986d5db6ca1b5532a7f3d13 (diff) | |
| download | catch3-4b9780201bbebdd8468d74cf028c53da3c83a187.tar.gz | |
Fix warning suppressions leaking under clang.exe
When running clang.exe under Windows, catch.hpp leaks warning
suppressions because it uses `#pragma warning(push)` & `#pragma
warning(pop)` around warning suppressions like `#pragma clang diagnostic
ignore "-Wunused-variable"`, instead of using `#pragma clang diagnostic
push` and `#pragma clang diagnostic pop`.
This fixes that by only defining
`CATCH_INTERNAL_START_WARNINGS_SUPPRESSION` and
`CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION` to be the cl.exe variants if
`defined(_MSC_VER) && !defined(__clang__)`.
Diffstat (limited to 'projects/SelfTest/UsageTests/ToStringByte.tests.cpp')
0 files changed, 0 insertions, 0 deletions