Skip to content

Commit d8a948f

Browse files
bnoordhuistargos
authored andcommittedApr 22, 2020
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 <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>
1 parent 7908415 commit d8a948f

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
@@ -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)
Please sign in to comment.