From 472255931d39d7fb4568492e40ffd457829100a3 Mon Sep 17 00:00:00 2001 From: milek7 Date: Tue, 23 Oct 2018 17:24:54 +0200 Subject: [PATCH] supress warnings in python.h --- PyInt.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PyInt.h b/PyInt.h index a86b5ff9..47709c22 100644 --- a/PyInt.h +++ b/PyInt.h @@ -18,7 +18,12 @@ http://mozilla.org/MPL/2.0/. #undef _XOPEN_SOURCE #endif +#ifdef _MSC_VER +#pragma warning( push ) +#pragma warning( disable : 5033 ) +#endif #ifdef __GNUC__ +#pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wregister" #endif @@ -33,6 +38,9 @@ http://mozilla.org/MPL/2.0/. #ifdef __GNUC__ #pragma GCC diagnostic pop #endif +#ifdef _MSC_VER +#pragma warning( pop ) +#endif #include "Classes.h" #include "utilities.h"