diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2020-03-22 10:26:18 +0100 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2020-04-22 18:34:43 +0200 |
commit | d8a948f0fc06d386c38512702ba9048560b80658 (patch) | |
tree | 66f5c2aa3207d59fd653c8835dea546f18fd0518 /common.gypi | |
parent | 790841597d4a03428c97c8ba45ba67b46578e1f9 (diff) | |
download | node-new-d8a948f0fc06d386c38512702ba9048560b80658.tar.gz |
build: disable -Wattributes warnings on aix
Disable the following compiler warning:
warning: visibility attribute not supported in this
configuration; ignored [-Wattributes]
This is gcc complaining about `__attribute((visibility("default"))`
in static library builds. Legitimate but harmless (and uninteresting)
and it drowns out more relevant warnings.
PR-URL: https://github.com/nodejs/node/pull/32419
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'common.gypi')
-rw-r--r-- | common.gypi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common.gypi b/common.gypi index 67dfd0f789..fd3c4738ba 100644 --- a/common.gypi +++ b/common.gypi @@ -426,6 +426,15 @@ '-Wl,-brtl', ], }, { # else it's `AIX` + # Disable the following compiler warning: + # + # warning: visibility attribute not supported in this + # configuration; ignored [-Wattributes] + # + # This is gcc complaining about __attribute((visibility("default")) + # in static library builds. Legitimate but harmless and it drowns + # out more relevant warnings. + 'cflags': [ '-Wno-attributes' ], 'ldflags': [ '-Wl,-blibpath:/usr/lib:/lib:/opt/freeware/lib/pthread/ppc64', ], |