]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/cgo: mark fatalf as noreturn
authorMauri de Souza Meneguzzo <mauri870@gmail.com>
Fri, 15 Dec 2023 02:02:41 +0000 (02:02 +0000)
committerCherry Mui <cherryyz@google.com>
Tue, 13 Feb 2024 20:50:04 +0000 (20:50 +0000)
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 <gobot@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Run-TryBot: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/runtime/cgo/libcgo.h

index 295c12c53c113a532b69944594ee68513432cd1b..26da68fadb67d0dca4ff4858fb2a59ea58f7acc8 100644 (file)
@@ -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.