Skip to content

Commit d8a948f

Browse files
bnoordhuistargos
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 7908415 commit d8a948f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

common.gypi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,15 @@
426426
'-Wl,-brtl',
427427
],
428428
}, { # else it's `AIX`
429+
# Disable the following compiler warning:
430+
#
431+
# warning: visibility attribute not supported in this
432+
# configuration; ignored [-Wattributes]
433+
#
434+
# This is gcc complaining about __attribute((visibility("default"))
435+
# in static library builds. Legitimate but harmless and it drowns
436+
# out more relevant warnings.
437+
'cflags': [ '-Wno-attributes' ],
429438
'ldflags': [
430439
'-Wl,-blibpath:/usr/lib:/lib:/opt/freeware/lib/pthread/ppc64',
431440
],

0 commit comments

Comments
 (0)