From: Ian Lance Taylor Date: Tue, 27 Feb 2024 21:22:40 +0000 (-0800) Subject: runtime/cgo: ignore unknown warning options X-Git-Tag: go1.23rc1~1046 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0784fd1b2f6050b8fb91c88c1d02107258a1651a;p=gostls13.git 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 Commit-Queue: Ian Lance Taylor Reviewed-by: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Mauri de Souza Meneguzzo Reviewed-by: Bryan Mills --- diff --git a/src/runtime/cgo/gcc_libinit.c b/src/runtime/cgo/gcc_libinit.c index 09ba38b6d0..33a9ff93ca 100644 --- a/src/runtime/cgo/gcc_libinit.c +++ b/src/runtime/cgo/gcc_libinit.c @@ -8,6 +8,7 @@ // and cause a compiler warning. This results in a build failure since // cgo uses -Werror. See #65290. #pragma GCC diagnostic ignored "-Wpragmas" +#pragma GCC diagnostic ignored "-Wunknown-warning-option" #pragma GCC diagnostic ignored "-Watomic-alignment" #include