Fixed Catch2 disabling MSVC optimizations for rest of translation unit. (#460)

This commit is contained in:
Branimir Karadžić
2026-10-15 13:14:41 -07:00
committed by GitHub
parent a361ff7878
commit 983e0b9af7

View File

@@ -1520,7 +1520,7 @@ namespace Catch {
*reinterpret_cast<char volatile*>(p) = *reinterpret_cast<char const volatile*>(p);
}
// TODO equivalent keep_memory()
#if defined(_MSVC_VER)
#if defined(_MSC_VER)
#pragma optimize("", on)
#endif