From 2b0a86c48a8e655838d77babb3bdc03c44e8b8fd Mon Sep 17 00:00:00 2001 From: raspopov Date: Tue, 27 Oct 2020 19:13:56 +0300 Subject: [PATCH] Fixed wrong #pragma warning use. Signed-off-by: raspopov --- pthread.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pthread.h b/pthread.h index f35a39b..a270e6c 100644 --- a/pthread.h +++ b/pthread.h @@ -559,13 +559,14 @@ typedef struct __ptw32_cleanup_t __ptw32_cleanup_t; #if defined(_MSC_VER) /* Disable MSVC 'anachronism used' warning */ +#pragma warning( push ) #pragma warning( disable : 4229 ) #endif typedef void (* __PTW32_CDECL __ptw32_cleanup_callback_t)(void *); #if defined(_MSC_VER) -#pragma warning( default : 4229 ) +#pragma warning( pop ) #endif struct __ptw32_cleanup_t