From: Mauri de Souza Meneguzzo Date: Fri, 15 Dec 2023 02:02:41 +0000 (+0000) Subject: runtime/cgo: mark fatalf as noreturn X-Git-Tag: go1.23rc1~1235 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0286a0822b30b63e49be77384ca6f69bcc039b41;p=gostls13.git 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 --- diff --git a/src/runtime/cgo/libcgo.h b/src/runtime/cgo/libcgo.h index 295c12c53c..26da68fadb 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.