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:
Michael Dawson 2025-01-17 19:54:00 +00:00
parent f2d274753a
commit e6f1ddf33f
3 changed files with 13 additions and 2 deletions

View file

@ -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': {