From 037f8448bee5ca62ea6bd771495c59c81258ab94 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 22 Mar 2020 10:26:18 +0100 Subject: [PATCH] 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 Reviewed-By: Richard Lau Reviewed-By: James M Snell Reviewed-By: Anna Henningsen --- common.gypi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common.gypi b/common.gypi index 2da3c56e7f3..34c805af9f2 100644 --- a/common.gypi +++ b/common.gypi @@ -401,6 +401,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', ],