1
0
mirror of https://github.com/golang/go synced 2024-11-17 23:44:48 -07:00
go/misc/cgo/test/testdata
Hans df9c5d8f5d cmd/cgo: fix unused parameter warnings in generated _cgo_main.c
Applying -Werror compiler option to request warnings is an usual
way to discover potential errors. Go user may put a cgo directive
in preamble: `// #cgo CFLAGS: -Werror=unused-parameter`.

However, the directive also takes effect on the cgo generated files.
I cleaned _cgo_main.c to help Go user only concentrate on warnings
of their own file.

Fixes #43639

Change-Id: I9112f02ae5226f2fc87a8650d19faee59cddd588
GitHub-Last-Rev: f09d172f97
GitHub-Pull-Request: golang/go#46358
Reviewed-on: https://go-review.googlesource.com/c/go/+/322232
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Bryan C. Mills <bcmills@google.com>
2021-08-16 23:03:03 +00:00
..
gcc68255
issue8756
issue8828
issue9026
issue9400 all: use more precise build tags 2021-02-23 19:55:03 +00:00
issue9510a
issue9510b
issue20266
issue23555a
issue23555b
issue24161arg
issue24161e0 cmd/go: fix cgo test when min macOS version is set 2020-01-24 17:36:44 +00:00
issue24161e1 cmd/go: fix cgo test when min macOS version is set 2020-01-24 17:36:44 +00:00
issue24161e2 cmd/go: fix cgo test when min macOS version is set 2020-01-24 17:36:44 +00:00
issue24161res
issue26213
issue26430
issue26743
issue27054 cmd/cgo,cmd/fix,misc/cgo: map the EGLConfig C type to uintptr in Go 2020-05-31 09:48:08 +00:00
issue27340
issue29563
issue30527
issue41761a cmd/compile: export notinheap annotation to object file 2020-10-05 18:52:43 +00:00
issue43639 cmd/cgo: fix unused parameter warnings in generated _cgo_main.c 2021-08-16 23:03:03 +00:00
cgo_linux_test.go
cgo_test.go
gcc68255.go
issue8756.go
issue8828.go
issue9026.go
issue9400_linux.go
issue9510.go
issue20266.go
issue23555.go
issue24161_darwin_test.go misc/cgo/test: re-enable darwin cgo tests in race mode 2020-01-10 10:04:49 +00:00
issue26430.go
issue26743.go
issue27340.go
issue29563.go
issue30527.go
issue41761.go cmd/compile: export notinheap annotation to object file 2020-10-05 18:52:43 +00:00
issue43639.go cmd/cgo: fix unused parameter warnings in generated _cgo_main.c 2021-08-16 23:03:03 +00:00
test26213.go