From df308253d29cf6673b67ff29c7839f1285fb0663 Mon Sep 17 00:00:00 2001 From: Gabor Horvath Date: Fri, 15 Dec 2023 11:29:53 -0800 Subject: [PATCH] Suppress a PREfast warning in tests Port changes from [MSVC-PR-516915](https://devdiv.visualstudio.com/DevDiv/_git/msvc/pullrequest/516915) --- tests/std/tests/P0912R5_coroutine/test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/std/tests/P0912R5_coroutine/test.cpp b/tests/std/tests/P0912R5_coroutine/test.cpp index 0a0933cd84b..e86c429c0f6 100644 --- a/tests/std/tests/P0912R5_coroutine/test.cpp +++ b/tests/std/tests/P0912R5_coroutine/test.cpp @@ -8,6 +8,8 @@ using namespace std; #define STATIC_ASSERT(...) static_assert(__VA_ARGS__, #__VA_ARGS__) +#pragma warning(disable : 6397) // The address-of operator cannot return null pointer in well-defined code. + int g_tasks_destroyed{0}; struct Task {