1
0
mirror of https://github.com/golang/go synced 2024-11-26 14:26:51 -07:00
go/doc/next
Keith Randall df009eead9 cmd/cgo: error on multiple incompatible function declarations
When there are multiple declarations of a function, ensure that
those declarations at least agree on the size/alignment of arguments
and return values.

It's hard to be stricter given existing code and situations where
arguments differ only by typedefs. For instance:
    int usleep(unsigned);
    int usleep(useconds_t);

Fixes #67699.

Change-Id: I3b4b17afee92b55f9e712b4590ec608ab1f7ac91
Reviewed-on: https://go-review.googlesource.com/c/go/+/588977
Auto-Submit: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2024-07-23 21:11:11 +00:00
..
6-stdlib doc: initialize next directory for Go 1.24 2024-07-22 17:55:04 +00:00
1-intro.md doc: initialize next directory for Go 1.24 2024-07-22 17:55:04 +00:00
2-language.md doc: initialize next directory for Go 1.24 2024-07-22 17:55:04 +00:00
3-tools.md cmd/cgo: error on multiple incompatible function declarations 2024-07-23 21:11:11 +00:00
4-runtime.md doc: initialize next directory for Go 1.24 2024-07-22 17:55:04 +00:00
5-toolchain.md doc: initialize next directory for Go 1.24 2024-07-22 17:55:04 +00:00
7-ports.md doc: initialize next directory for Go 1.24 2024-07-22 17:55:04 +00:00