From bdf9f2e3a1da792267e37a6404eae545caa8cefd Mon Sep 17 00:00:00 2001 From: Pavel Medvedev Date: Sat, 29 Jul 2017 00:13:49 +0200 Subject: [PATCH] Turn off Visual C++ warnings for v8.h include --- test/test_utility.cpp | 1 - v8pp/call_from_v8.hpp | 2 ++ v8pp/call_v8.hpp | 2 ++ v8pp/context.hpp | 2 ++ v8pp/convert.hpp | 2 ++ v8pp/factory.hpp | 2 ++ v8pp/json.hpp | 3 +++ v8pp/module.hpp | 2 ++ v8pp/object.hpp | 3 +++ v8pp/persistent.hpp | 2 ++ v8pp/throw_ex.hpp | 2 ++ 11 files changed, 22 insertions(+), 1 deletion(-) diff --git a/test/test_utility.cpp b/test/test_utility.cpp index c0628084..12f08944 100644 --- a/test/test_utility.cpp +++ b/test/test_utility.cpp @@ -7,7 +7,6 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include -#include #include "v8pp/utility.hpp" #include "test.hpp" diff --git a/v8pp/call_from_v8.hpp b/v8pp/call_from_v8.hpp index 092279a3..fa70250c 100644 --- a/v8pp/call_from_v8.hpp +++ b/v8pp/call_from_v8.hpp @@ -11,7 +11,9 @@ #include +#pragma warning(push, 0) #include +#pragma warning(pop) #include "v8pp/convert.hpp" #include "v8pp/utility.hpp" diff --git a/v8pp/call_v8.hpp b/v8pp/call_v8.hpp index aa2585c1..53114648 100644 --- a/v8pp/call_v8.hpp +++ b/v8pp/call_v8.hpp @@ -9,7 +9,9 @@ #ifndef V8PP_CALL_V8_HPP_INCLUDED #define V8PP_CALL_V8_HPP_INCLUDED +#pragma warning(push, 0) #include +#pragma warning(pop) #include "v8pp/convert.hpp" diff --git a/v8pp/context.hpp b/v8pp/context.hpp index 1db4a3e5..30793520 100644 --- a/v8pp/context.hpp +++ b/v8pp/context.hpp @@ -12,7 +12,9 @@ #include #include +#pragma warning(push, 0) #include +#pragma warning(pop) #include "v8pp/convert.hpp" diff --git a/v8pp/convert.hpp b/v8pp/convert.hpp index d650e1a6..19d7478f 100644 --- a/v8pp/convert.hpp +++ b/v8pp/convert.hpp @@ -9,7 +9,9 @@ #ifndef V8PP_CONVERT_HPP_INCLUDED #define V8PP_CONVERT_HPP_INCLUDED +#pragma warning(push, 0) #include +#pragma warning(pop) #include #include diff --git a/v8pp/factory.hpp b/v8pp/factory.hpp index be3abe97..7058246f 100644 --- a/v8pp/factory.hpp +++ b/v8pp/factory.hpp @@ -11,7 +11,9 @@ #include +#pragma warning(push, 0) #include +#pragma warning(pop) namespace v8pp { diff --git a/v8pp/json.hpp b/v8pp/json.hpp index f435842e..371a6234 100644 --- a/v8pp/json.hpp +++ b/v8pp/json.hpp @@ -10,7 +10,10 @@ #define V8PP_JSON_HPP_INCLUDED #include + +#pragma warning(push, 0) #include +#pragma warning(pop) namespace v8pp { diff --git a/v8pp/module.hpp b/v8pp/module.hpp index 52690da6..ec9459c1 100644 --- a/v8pp/module.hpp +++ b/v8pp/module.hpp @@ -9,7 +9,9 @@ #ifndef V8PP_MODULE_HPP_INCLUDED #define V8PP_MODULE_HPP_INCLUDED +#pragma warning(push, 0) #include +#pragma warning(pop) #include "v8pp/config.hpp" #include "v8pp/function.hpp" diff --git a/v8pp/object.hpp b/v8pp/object.hpp index 7dcb501e..12cd9ea3 100644 --- a/v8pp/object.hpp +++ b/v8pp/object.hpp @@ -10,7 +10,10 @@ #define V8PP_OBJECT_HPP_INCLUDED #include + +#pragma warning(push, 0) #include +#pragma warning(pop) #include "v8pp/convert.hpp" diff --git a/v8pp/persistent.hpp b/v8pp/persistent.hpp index 544ebac7..bfca1646 100644 --- a/v8pp/persistent.hpp +++ b/v8pp/persistent.hpp @@ -9,7 +9,9 @@ #ifndef V8PP_PERSISTENT_HPP_INCLUDED #define V8PP_PERSISTENT_HPP_INCLUDED +#pragma warning(push, 0) #include +#pragma warning(pop) #include "v8pp/convert.hpp" diff --git a/v8pp/throw_ex.hpp b/v8pp/throw_ex.hpp index 8182774a..10bb1d34 100644 --- a/v8pp/throw_ex.hpp +++ b/v8pp/throw_ex.hpp @@ -12,7 +12,9 @@ #include #include +#pragma warning(push, 0) #include +#pragma warning(pop) #ifdef WIN32 #include