From e95a2605d4f7036d689b3bff59780481becf619a Mon Sep 17 00:00:00 2001 From: Joachim Henze Date: Mon, 28 Mar 2022 14:12:30 +0200 Subject: [PATCH] [0.4.11][NTDLL_APITEST] Mute 1 MSVC2010SP1 x86 dbg warning C4717 CORE-18104 can be observed with MSVC 2010SP1 (16.0.40219.1) x86 target in dbg configuation: c:\047rls\reactos\modules\rostests\apitests\ntdll\stackoverflow.c(57) : warning C4717: 'infinite_recursive' : recursive on all control paths, function will cause runtime stack overflow Muting is okay here, because stack overflow is specifically what is aimed to be tested here. Fix is a partial pick of 0.4.14-dev-847-g 42d2d5ec9c76588624412f95114d26f36373959f No warnings left in module NTDLL_APITEST and no C4717 left in releases/0.4.7. --- modules/rostests/apitests/ntdll/StackOverflow.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/rostests/apitests/ntdll/StackOverflow.c b/modules/rostests/apitests/ntdll/StackOverflow.c index 794e2fe0ffb..175142d01a3 100644 --- a/modules/rostests/apitests/ntdll/StackOverflow.c +++ b/modules/rostests/apitests/ntdll/StackOverflow.c @@ -7,6 +7,10 @@ #include "precomp.h" +#ifdef _MSC_VER +#pragma warning(disable : 4717) // disable warning about recursive function +#endif + static int iteration = 0; static PVOID StackAllocationBase; static PVOID LastStackAllocation;