aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vendor/github.com
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2024-05-29 19:37:43 -0700
committerGopher Robot <gobot@golang.org>2024-07-23 21:11:11 +0000
commitdf009eead9c2d213bc9c6057f07d2c319f71b50b (patch)
treed2c1299bc4f68e3735bc40bacede80ee2f570a0f /src/cmd/vendor/github.com
parentb0f7be3cfa1ee5fbfe46590475861677cc9514fa (diff)
downloadgo-df009eead9c2d213bc9c6057f07d2c319f71b50b.tar.xz
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>
Diffstat (limited to 'src/cmd/vendor/github.com')
0 files changed, 0 insertions, 0 deletions