Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal/catch_assertionhandler.cpp
diff options
context:
space:
mode:
authorJørgen P. Tjernø2021-08-27 16:59:35 -0700
committerMartin Hořeňovský2021-08-30 23:26:51 +0200
commit4b9780201bbebdd8468d74cf028c53da3c83a187 (patch)
tree82281bbae887c51e2058130b90c2224b66dcd91c /include/internal/catch_assertionhandler.cpp
parentc4e3767e265808590986d5db6ca1b5532a7f3d13 (diff)
downloadcatch3-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 'include/internal/catch_assertionhandler.cpp')
0 files changed, 0 insertions, 0 deletions