mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
build: add build option suppress_all_error_on_warn
Add an option to suppress cases where warnings are on by default Signed-off-by: Michael Dawson <midawson@redhat.com> PR-URL: https://github.com/nodejs/node/pull/56647 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
parent
f2d274753a
commit
e6f1ddf33f
3 changed files with 13 additions and 2 deletions
5
node.gyp
5
node.gyp
|
@ -871,8 +871,6 @@
|
|||
'openssl_default_cipher_list%': '',
|
||||
},
|
||||
|
||||
'cflags': ['-Werror=unused-result'],
|
||||
|
||||
'defines': [
|
||||
'NODE_ARCH="<(target_arch)"',
|
||||
'NODE_PLATFORM="<(OS)"',
|
||||
|
@ -893,6 +891,9 @@
|
|||
'NODE_OPENSSL_DEFAULT_CIPHER_LIST="<(openssl_default_cipher_list)"'
|
||||
]
|
||||
}],
|
||||
[ 'suppress_all_error_on_warn=="false"', {
|
||||
'cflags': ['-Werror=unused-result'],
|
||||
}],
|
||||
[ 'error_on_warn=="true"', {
|
||||
'cflags': ['-Werror'],
|
||||
'xcode_settings': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue