[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 42d2d5ec9c

No warnings left in module NTDLL_APITEST and no C4717 left in releases/0.4.7.
This commit is contained in:
Joachim Henze 2022-03-28 14:12:30 +02:00
parent 06d8420de6
commit e95a2605d4

View file

@ -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;