Skip to content
Snippets Groups Projects
Commit 9facf1f2 authored by Ian Lance Taylor's avatar Ian Lance Taylor Committed by Gopher Robot
Browse files

[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: default avatarCherry Mui <cherryyz@google.com>
Reviewed-by: default avatarMichael 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 76c70282)
Reviewed-on: https://go-review.googlesource.com/c/go/+/652935


Reviewed-by: default avatarMichael Knyszek <mknyszek@google.com>
parent 0fa31cb6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment