From 0286a0822b30b63e49be77384ca6f69bcc039b41 Mon Sep 17 00:00:00 2001 From: Mauri de Souza Meneguzzo Date: Fri, 15 Dec 2023 02:02:41 +0000 Subject: [PATCH] runtime/cgo: mark fatalf as noreturn Fixes #64553 Change-Id: I7860cd9ba74d70a7d988538ea4df8e122f94cde6 GitHub-Last-Rev: 06164374734aef5b94566930426005ad66d0a5b6 GitHub-Pull-Request: golang/go#64727 Reviewed-on: https://go-review.googlesource.com/c/go/+/550115 TryBot-Result: Gopher Robot Reviewed-by: Carlos Amedee Run-TryBot: Mauri de Souza Meneguzzo Run-TryBot: Cherry Mui Reviewed-by: Cherry Mui --- src/runtime/cgo/libcgo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/cgo/libcgo.h b/src/runtime/cgo/libcgo.h index 295c12c53c1..26da68fadb6 100644 --- a/src/runtime/cgo/libcgo.h +++ b/src/runtime/cgo/libcgo.h @@ -76,7 +76,7 @@ void x_cgo_getstackbound(uintptr bounds[2]); /* * Prints error then calls abort. For linux and android. */ -void fatalf(const char* format, ...); +void fatalf(const char* format, ...) __attribute__ ((noreturn)); /* * Registers the current mach thread port for EXC_BAD_ACCESS processing.