]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.23] runtime/cgo: avoid errors from -Wdeclaration-after-statement
authorIan Lance Taylor <iant@golang.org>
Wed, 26 Feb 2025 05:35:32 +0000 (21:35 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 26 Feb 2025 19:44:28 +0000 (11:44 -0800)
commit9facf1f2c25dbd3da63c394e9f7f46b56a53f7ae
treee9b2fba951171b60fef5ec6317e632d513ca00bc
parent0fa31cb69f693cadb96535b67c166b7bd65d73b0
[release-branch.go1.23] runtime/cgo: avoid errors from -Wdeclaration-after-statement

It's used by the SWIG CI build, at least, and it's an easy fix.

[The change in x_cgo_sys_thread_create is gone, as that function was
already compliant in 1.23.]

Fixes #71962
For #71961

Change-Id: Id21071a5aef216b35ecf0e9cd3e05d08972d92fe
Reviewed-on: https://go-review.googlesource.com/c/go/+/652181
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
(cherry picked from commit 76c70282538bf4cccd6f98b5b26df7f5a7f2cebd)
Reviewed-on: https://go-review.googlesource.com/c/go/+/652935
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/cgo/cgo.go
src/runtime/cgo/gcc_libinit.c
src/runtime/cgo/gcc_libinit_windows.c