From 3c206f96fd1e102a13b2971778060fef4be7afbc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 03:25:37 +0200 Subject: Merging upstream version 3.5.1+dfsg1. Signed-off-by: Daniel Baumann --- winpr/libwinpr/utils/test/TestStream.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'winpr/libwinpr/utils/test/TestStream.c') diff --git a/winpr/libwinpr/utils/test/TestStream.c b/winpr/libwinpr/utils/test/TestStream.c index 00130ae..f86996e 100644 --- a/winpr/libwinpr/utils/test/TestStream.c +++ b/winpr/libwinpr/utils/test/TestStream.c @@ -124,7 +124,13 @@ static BOOL TestStream_Static(void) if (v != 2) return FALSE; + // Intentional warning as the stream is not allocated. + // Still, Stream_Free should not release such memory, therefore this statement + // is required to test that. + WINPR_PRAGMA_DIAG_PUSH + WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC Stream_Free(s, TRUE); + WINPR_PRAGMA_DIAG_POP return TRUE; } -- cgit v1.2.3