Skip to content

Commit 432e58f

Browse files
bnoordhuisaddaleax
authored andcommitted
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: #32419 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent fbf0493 commit 432e58f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

common.gypi

+9
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,15 @@
401401
'-Wl,-brtl',
402402
],
403403
}, { # else it's `AIX`
404+
# Disable the following compiler warning:
405+
#
406+
# warning: visibility attribute not supported in this
407+
# configuration; ignored [-Wattributes]
408+
#
409+
# This is gcc complaining about __attribute((visibility("default"))
410+
# in static library builds. Legitimate but harmless and it drowns
411+
# out more relevant warnings.
412+
'cflags': [ '-Wno-attributes' ],
404413
'ldflags': [
405414
'-Wl,-blibpath:/usr/lib:/lib:/opt/freeware/lib/pthread/ppc64',
406415
],

0 commit comments

Comments
 (0)