so that GCC11 no longer complains
Signed-off-by: Eric Pouech eric.pouech@gmail.com
--- dlls/kernel32/tests/heap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/kernel32/tests/heap.c b/dlls/kernel32/tests/heap.c index 8558bd7f1b3..38a0a5731c1 100644 --- a/dlls/kernel32/tests/heap.c +++ b/dlls/kernel32/tests/heap.c @@ -891,7 +891,8 @@ static void test_HeapQueryInformation(void)
static void test_heap_checks( DWORD flags ) { - BYTE old, *p, *p2; + BYTE old, *p2; + BYTE * volatile p; /* as we read past of allocated size, don't let GCC11 complain */ BOOL ret; SIZE_T i, size, large_size = 3000 * 1024 + 37;