From 085fc552c97face44f530a834d025850de87da01 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Tue, 31 Mar 2020 14:33:44 -0500 Subject: [PATCH] Avoid pragma syntax warning in non-msvc compilers. --- src/engine/execnt.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/engine/execnt.cpp b/src/engine/execnt.cpp index 4909fca10..63cb12fa2 100644 --- a/src/engine/execnt.cpp +++ b/src/engine/execnt.cpp @@ -55,10 +55,18 @@ #include #include #include + +#if defined(__GNUC__) defined(__clang__) +#else #pragma warning( push ) #pragma warning(disable: 4800) // 'BOOL' forced to 'true' or 'false' +#endif #include +#if defined(__GNUC__) defined(__clang__) +#else #pragma warning( pop ) +#pragma GCC diagnostic pop +#endif /* get the maximum shell command line length according to the OS */