Skip to content

Commit 0784fd1

Browse files
ianlancetaylorgopherbot
authored andcommitted
runtime/cgo: ignore unknown warning options
For #65290 Fixes #65971 Change-Id: If15853f287e06b85bb1cb038b3785516d5812f84 Reviewed-on: https://go-review.googlesource.com/c/go/+/567556 Auto-Submit: Ian Lance Taylor <[email protected]> Commit-Queue: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Mauri de Souza Meneguzzo <[email protected]> Reviewed-by: Bryan Mills <[email protected]>
1 parent 288615d commit 0784fd1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/runtime/cgo/gcc_libinit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// and cause a compiler warning. This results in a build failure since
99
// cgo uses -Werror. See #65290.
1010
#pragma GCC diagnostic ignored "-Wpragmas"
11+
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
1112
#pragma GCC diagnostic ignored "-Watomic-alignment"
1213

1314
#include <pthread.h>

0 commit comments

Comments
 (0)