]> Cypherpunks repositories - gostls13.git/commit
runtime/testdata: fix for C23 nullptr keyword
authorJoseph Myers <josmyers@redhat.com>
Thu, 17 Oct 2024 20:30:37 +0000 (20:30 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 18 Oct 2024 22:35:39 +0000 (22:35 +0000)
commit04f054d3347e34c5188e83a848e813253d069e25
tree9907039747c23eb6b46485cb806507786a7f2096
parentcd4820cd19f61e2b8e59855c58a2169b3aefb124
runtime/testdata: fix for C23 nullptr keyword

src/runtime/testdata/testprogcgo/threadprof.go contains C code with a
variable called nullptr.  This conflicts with the nullptr keyword in
the C23 revision of the C standard (showing up as gccgo test build
failures when updating GCC to use C23 by default when building C
code).

Rename that variable to nullpointer to avoid the clash with the
keyword (any other name that's not a keyword would work just as well).

Change-Id: Ida5ef371a3f856c611409884e185c3d5ded8e86c
GitHub-Last-Rev: 2ec464703be0507a67a077741789a37511d197e4
GitHub-Pull-Request: golang/go#69927
Reviewed-on: https://go-review.googlesource.com/c/go/+/620955
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/runtime/testdata/testprogcgo/threadprof.go