Skip to content

Commit bdf9f2e

Browse files
committed
Turn off Visual C++ warnings for v8.h include
1 parent cdd2a80 commit bdf9f2e

11 files changed

+22
-1
lines changed

test/test_utility.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
88
//
99
#include <functional>
10-
#include <v8.h>
1110

1211
#include "v8pp/utility.hpp"
1312
#include "test.hpp"

v8pp/call_from_v8.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
#include <functional>
1313

14+
#pragma warning(push, 0)
1415
#include <v8.h>
16+
#pragma warning(pop)
1517

1618
#include "v8pp/convert.hpp"
1719
#include "v8pp/utility.hpp"

v8pp/call_v8.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
#ifndef V8PP_CALL_V8_HPP_INCLUDED
1010
#define V8PP_CALL_V8_HPP_INCLUDED
1111

12+
#pragma warning(push, 0)
1213
#include <v8.h>
14+
#pragma warning(pop)
1315

1416
#include "v8pp/convert.hpp"
1517

v8pp/context.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
#include <string>
1313
#include <map>
1414

15+
#pragma warning(push, 0)
1516
#include <v8.h>
17+
#pragma warning(pop)
1618

1719
#include "v8pp/convert.hpp"
1820

v8pp/convert.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
#ifndef V8PP_CONVERT_HPP_INCLUDED
1010
#define V8PP_CONVERT_HPP_INCLUDED
1111

12+
#pragma warning(push, 0)
1213
#include <v8.h>
14+
#pragma warning(pop)
1315

1416
#include <climits>
1517
#include <string>

v8pp/factory.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
#include <utility>
1313

14+
#pragma warning(push, 0)
1415
#include <v8.h>
16+
#pragma warning(pop)
1517

1618
namespace v8pp {
1719

v8pp/json.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
#define V8PP_JSON_HPP_INCLUDED
1111

1212
#include <string>
13+
14+
#pragma warning(push, 0)
1315
#include <v8.h>
16+
#pragma warning(pop)
1417

1518
namespace v8pp {
1619

v8pp/module.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
#ifndef V8PP_MODULE_HPP_INCLUDED
1010
#define V8PP_MODULE_HPP_INCLUDED
1111

12+
#pragma warning(push, 0)
1213
#include <v8.h>
14+
#pragma warning(pop)
1315

1416
#include "v8pp/config.hpp"
1517
#include "v8pp/function.hpp"

v8pp/object.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
#define V8PP_OBJECT_HPP_INCLUDED
1111

1212
#include <cstring>
13+
14+
#pragma warning(push, 0)
1315
#include <v8.h>
16+
#pragma warning(pop)
1417

1518
#include "v8pp/convert.hpp"
1619

v8pp/persistent.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
#ifndef V8PP_PERSISTENT_HPP_INCLUDED
1010
#define V8PP_PERSISTENT_HPP_INCLUDED
1111

12+
#pragma warning(push, 0)
1213
#include <v8.h>
14+
#pragma warning(pop)
1315

1416
#include "v8pp/convert.hpp"
1517

v8pp/throw_ex.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
#include <string>
1313
#include <vector>
1414

15+
#pragma warning(push, 0)
1516
#include <v8.h>
17+
#pragma warning(pop)
1618

1719
#ifdef WIN32
1820
#include <windows.h>

0 commit comments

Comments
 (0)