mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
misc/cgo/test: disable unhelpful GCC warning
GCC 9 warns about a change in the ABI of passing structs with bitfields, but we don't care. Fixes #50987 Change-Id: Ica658d04172a42a7be788f94d31a714bb8c4766f Reviewed-on: https://go-review.googlesource.com/c/go/+/382956 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Benny Siegert <bsiegert@gmail.com> Trust: Benny Siegert <bsiegert@gmail.com>
This commit is contained in:
parent
896df422a7
commit
248ad855b7
|
@ -367,6 +367,11 @@ void init() {
|
|||
// Cgo incorrectly computed the alignment of structs
|
||||
// with no Go accessible fields as 0, and then panicked on
|
||||
// modulo-by-zero computations.
|
||||
|
||||
// issue 50987
|
||||
// disable arm64 GCC warnings
|
||||
#cgo CFLAGS: -Wno-psabi -Wno-unknown-warning-option
|
||||
|
||||
typedef struct {
|
||||
} foo;
|
||||
|
||||
|
|
Loading…
Reference in a new issue