Skip to content

Commit

Permalink
FIXUP make sure this suppresses semi errors
Browse files Browse the repository at this point in the history
  • Loading branch information
trevnorris committed Sep 19, 2024
1 parent de94b47 commit 1303173
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
14 changes: 7 additions & 7 deletions node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -537,15 +537,14 @@
# Putting these explicitly here so not to depend on `common.gypi`.
# `common.gypi` need to be more general because it is used to build userland native addons.
# Refs: https://github.com/nodejs/node-gyp/issues/1118
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', '-Wno-c++98-compat-extra-semi',],
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', '-Wno-c++98-compat-extra-semi', '-Wno-error=c++98-compat-extra-semi', ],
'xcode_settings': {
'WARNING_CFLAGS': [
'-Wall',
'-Wendif-labels',
'-W',
'-Wno-unused-parameter',
'-Werror=undefined-inline',
'-Werror=extra-semi',
'-Wno-c++98-compat-extra-semi',
],
},
Expand All @@ -561,7 +560,7 @@

'conditions': [
['clang==0 and OS!="win"', {
'cflags': [ '-Wno-restrict', ],
'cflags': [ '-Wno-restrict', '-Wno-c++98-compat-extra-semi', ],
}],
# Pointer authentication for ARM64.
['target_arch=="arm64"', {
Expand All @@ -584,6 +583,7 @@
],
}],
['OS=="linux" and clang==1', {
'cflags': [ '-Wno-c++98-compat-extra-semi', ],
'libraries': ['-latomic'],
}],
],
Expand Down Expand Up @@ -654,9 +654,9 @@

'conditions': [
[ 'error_on_warn=="true"', {
'cflags': ['-Werror'],
'cflags': ['-Werror', '-Wno-c++98-compat-extra-semi', '-Wno-error=c++98-compat-extra-semi'],
'xcode_settings': {
'WARNING_CFLAGS': [ '-Werror' ],
'WARNING_CFLAGS': [ '-Werror', '-Wno-error=c++98-compat-extra-semi' ],
},
}],
[ 'node_intermediate_lib_type=="static_library" and '
Expand Down Expand Up @@ -976,9 +976,9 @@
]
}],
[ 'error_on_warn=="true"', {
'cflags': ['-Werror'],
'cflags': ['-Werror', '-Wno-error=c++98-compat-extra-semi'],
'xcode_settings': {
'WARNING_CFLAGS': [ '-Werror' ],
'WARNING_CFLAGS': [ '-Werror', '-Wno-error=c++98-compat-extra-semi' ],
},
}],
[ 'node_builtin_modules_path!=""', {
Expand Down
5 changes: 5 additions & 0 deletions node.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,11 @@

[ 'node_shared_otlp_http_exporter=="false"', {
'dependencies': [ 'deps/opentelemetry-cpp/otlp-http-exporter.gyp:otlp-http-exporter' ],
'direct_dependent_settings': {
'cflags': [
'-Wno-c++98-compat-extra-semi',
],
},
'conditions': [
[ 'force_load=="true"', {
'xcode_settings': {
Expand Down

0 comments on commit 1303173

Please sign in to comment.