]> Cypherpunks repositories - gostls13.git/commit
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 18:52:55 +0000 (10:52 -0800)
commit76c70282538bf4cccd6f98b5b26df7f5a7f2cebd
tree45c62de6fe96dd8de1fe4cf888db8dcd2d5d95b6
parent194696f1d1f6e5609f96d0fb0192595e7e0f5b90
runtime/cgo: avoid errors from -Wdeclaration-after-statement

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

Fixes #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>
src/runtime/cgo/cgo.go
src/runtime/cgo/gcc_libinit.c
src/runtime/cgo/gcc_libinit_windows.c