build,win: exclude warning 4244 only for deps
* also unify warning exclusion directive PR-URL: https://github.com/nodejs/node/pull/22698 Reviewed-By: João Reis <reis@janeasystems.com>
This commit is contained in:
parent
7a10b86ab7
commit
54e76fb873
27
common.gypi
27
common.gypi
@ -274,18 +274,6 @@
|
|||||||
'BufferSecurityCheck': 'true',
|
'BufferSecurityCheck': 'true',
|
||||||
'ExceptionHandling': 0, # /EHsc
|
'ExceptionHandling': 0, # /EHsc
|
||||||
'SuppressStartupBanner': 'true',
|
'SuppressStartupBanner': 'true',
|
||||||
# Disable warnings:
|
|
||||||
# - "C4251: class needs to have dll-interface"
|
|
||||||
# - "C4275: non-DLL-interface used as base for DLL-interface"
|
|
||||||
# Over 10k of these warnings are generated when compiling node,
|
|
||||||
# originating from v8.h. Most of them are false positives.
|
|
||||||
# See also: https://github.com/nodejs/node/pull/15570
|
|
||||||
# TODO: re-enable when Visual Studio fixes these upstream.
|
|
||||||
#
|
|
||||||
# - "C4267: conversion from 'size_t' to 'int'"
|
|
||||||
# Many any originate from our dependencies, and their sheer number
|
|
||||||
# drowns out other, more legitimate warnings.
|
|
||||||
'DisableSpecificWarnings': ['4251', '4275', '4267'],
|
|
||||||
'WarnAsError': 'false',
|
'WarnAsError': 'false',
|
||||||
},
|
},
|
||||||
'VCLinkerTool': {
|
'VCLinkerTool': {
|
||||||
@ -316,7 +304,20 @@
|
|||||||
'SuppressStartupBanner': 'true',
|
'SuppressStartupBanner': 'true',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'msvs_disabled_warnings': [4351, 4355, 4800],
|
# Disable warnings:
|
||||||
|
# - "C4251: class needs to have dll-interface"
|
||||||
|
# - "C4275: non-DLL-interface used as base for DLL-interface"
|
||||||
|
# Over 10k of these warnings are generated when compiling node,
|
||||||
|
# originating from v8.h. Most of them are false positives.
|
||||||
|
# See also: https://github.com/nodejs/node/pull/15570
|
||||||
|
# TODO: re-enable when Visual Studio fixes these upstream.
|
||||||
|
#
|
||||||
|
# - "C4267: conversion from 'size_t' to 'int'"
|
||||||
|
# Many any originate from our dependencies, and their sheer number
|
||||||
|
# drowns out other, more legitimate warnings.
|
||||||
|
# - "C4244: conversion from 'type1' to 'type2', possible loss of data"
|
||||||
|
# Ususaly safe. Disable for `dep`, enable for `src`
|
||||||
|
'msvs_disabled_warnings': [4351, 4355, 4800, 4251, 4275, 4244, 4267],
|
||||||
'conditions': [
|
'conditions': [
|
||||||
['asan == 1 and OS != "mac"', {
|
['asan == 1 and OS != "mac"', {
|
||||||
'cflags+': [
|
'cflags+': [
|
||||||
|
10
node.gyp
10
node.gyp
@ -239,6 +239,11 @@
|
|||||||
'src',
|
'src',
|
||||||
'deps/v8/include',
|
'deps/v8/include',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
# - "C4244: conversion from 'type1' to 'type2', possible loss of data"
|
||||||
|
# Ususaly safe. Disable for `dep`, enable for `src`
|
||||||
|
'msvs_disabled_warnings!': [4244],
|
||||||
|
|
||||||
'conditions': [
|
'conditions': [
|
||||||
[ 'node_intermediate_lib_type=="static_library" and '
|
[ 'node_intermediate_lib_type=="static_library" and '
|
||||||
'node_shared=="true" and OS=="aix"', {
|
'node_shared=="true" and OS=="aix"', {
|
||||||
@ -472,6 +477,11 @@
|
|||||||
'V8_DEPRECATION_WARNINGS=1',
|
'V8_DEPRECATION_WARNINGS=1',
|
||||||
'NODE_OPENSSL_SYSTEM_CERT_PATH="<(openssl_system_ca_path)"',
|
'NODE_OPENSSL_SYSTEM_CERT_PATH="<(openssl_system_ca_path)"',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
# - "C4244: conversion from 'type1' to 'type2', possible loss of data"
|
||||||
|
# Ususaly safe. Disable for `dep`, enable for `src`
|
||||||
|
'msvs_disabled_warnings!': [4244],
|
||||||
|
|
||||||
'conditions': [
|
'conditions': [
|
||||||
[ 'node_code_cache_path!=""', {
|
[ 'node_code_cache_path!=""', {
|
||||||
'sources': [ '<(node_code_cache_path)' ]
|
'sources': [ '<(node_code_cache_path)' ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user