From 0784fd1b2f6050b8fb91c88c1d02107258a1651a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 27 Feb 2024 13:22:40 -0800 Subject: [PATCH] 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 --- src/runtime/cgo/gcc_libinit.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.48.1