]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: use full prototype for main in C code
authorIan Lance Taylor <iant@golang.org>
Wed, 11 Dec 2024 04:05:06 +0000 (20:05 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 11 Dec 2024 23:57:34 +0000 (15:57 -0800)
commitfafd4477f3d19f2c11a628e6e407ecf9924309c1
treee4bd2263b66c46ecca76efb1d2f316f19f484c0a
parent0ca521f9c1a6357578b501615f073adb2da6b527
cmd/cgo: use full prototype for main in C code

Avoids pedantic errors from modern C compilers.

Fixes #70769

Change-Id: Ibe0d9960e998eb0346b97d7bd69eb7de0d0e6c60
Reviewed-on: https://go-review.googlesource.com/c/go/+/635095
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/cgo/doc.go
src/cmd/cgo/out.go