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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2
diff options
context:
space:
mode:
authorThePhD2026-01-16 05:36:05 +0100
committerMartin Hořeňovský2026-01-19 15:14:53 +0100
commitde7e8630134f46e67a6b59269436f9cab94cd28e (patch)
tree31ef9855ff0a8506472ce5aecc32848dcc701a3c /src/catch2
parent024aec9729e0146c809da0c005e7733834f652a0 (diff)
downloadcatch3-de7e8630134f46e67a6b59269436f9cab94cd28e.tar.gz
🐛 Clang on Windows will define _MSC_VER and trip up these checks -- make it actually Visual C++-specific
Diffstat (limited to 'src/catch2')
-rw-r--r--src/catch2/internal/catch_compiler_capabilities.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_compiler_capabilities.hpp b/src/catch2/internal/catch_compiler_capabilities.hpp
index 80bb3af0..aa3af502 100644
--- a/src/catch2/internal/catch_compiler_capabilities.hpp
+++ b/src/catch2/internal/catch_compiler_capabilities.hpp
@@ -208,7 +208,7 @@
////////////////////////////////////////////////////////////////////////////////
// Visual C++
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) && !defined(__clang__)
// We want to defer to nvcc-specific warning suppression if we are compiled
// with nvcc masquerading for MSVC.