deps: silence irrelevant V8 warnings

PR-URL: https://github.com/nodejs/node/pull/25852
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
This commit is contained in:
Michaël Zasso 2019-03-13 10:55:48 +01:00
parent ff5d632a83
commit 1c494b0a95
No known key found for this signature in database
GPG Key ID: 770F7A9A5AE15600
2 changed files with 3 additions and 4 deletions

View File

@ -1393,7 +1393,7 @@
], # conditions
}, # Release
}, # configurations
'cflags': [ '-Wno-type-limits', ],
'cflags!': [ '-Wall', '-Wextra' ],
'msvs_disabled_warnings': [
4245, # Conversion with signed/unsigned mismatch.
4267, # Conversion with possible loss of data.

View File

@ -4337,14 +4337,13 @@ class V8_EXPORT CompiledWasmModule {
class V8_EXPORT WasmModuleObject : public Object {
public:
// TODO(clemensh): Remove after 7.3 branch.
V8_DEPRECATED("Use OwnedBuffer", typedef)
std::pair<std::unique_ptr<const uint8_t[]>, size_t> SerializedModule;
typedef std::pair<std::unique_ptr<const uint8_t[]>, size_t> SerializedModule;
/**
* A unowned reference to a byte buffer.
* TODO(clemensh): Remove after 7.3 branch.
*/
V8_DEPRECATED("Use MemorySpan<const uint8_t>", struct) BufferReference {
struct BufferReference {
const uint8_t* start;
size_t size;
BufferReference(const uint8_t* start, size_t size)