build: suppress compiler warnings for histogram

Synchronize compiler flags in the gyp build and unofficial gn build
of `deps/histogram`.

Signed-off-by: Richard Lau <richard.lau@ibm.com>
PR-URL: https://github.com/nodejs/node/pull/63980
Fixes: https://github.com/nodejs/node/issues/63979
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
This commit is contained in:
Richard Lau authored and GitHub committed 2026-06-20 15:05:11 +00:00
1 parent 57a4932a9d
commit dcbb21e06f
1 file changed
+23
+23
View File
@@ -13,6 +13,29 @@
'xcode_settings': {
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
},
'conditions': [
[ 'clang==1', {
'conditions': [
[ 'OS=="win"', {
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': [
'-Wno-atomic-alignment',
'-Wno-incompatible-pointer-types',
'-Wno-unused-function'
],
},
},
}, {
'cflags': [
'-Wno-atomic-alignment',
'-Wno-incompatible-pointer-types',
'-Wno-unused-function'
],
}],
],
}],
],
'include_dirs': ['src', 'include'],
'direct_dependent_settings': {
'include_dirs': [ 'src', 'include' ]