-
-
Notifications
You must be signed in to change notification settings - Fork 660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go vet fails on Windows #1306
Labels
Milestone
Comments
See also #889 |
hajimehoshi
added a commit
that referenced
this issue
Sep 3, 2020
hajimehoshi
added a commit
that referenced
this issue
Sep 3, 2020
Looks like it is hard or impossible to remove go-vet warnings? 🤔 |
|
hajimehoshi
added a commit
that referenced
this issue
May 22, 2022
hajimehoshi
added a commit
that referenced
this issue
Oct 30, 2022
golang/go#58625 will resolve this issue. |
If the above feature is available in Go 1.22, we would be able to use this in 3 or 4 years later. I'll set the milesone as v3 for now and let's adjust this when we change the minimum Go version we support. |
Would this be a valid workaround? Now: func wglGetExtensionsStringARB(hdc _HDC) string {
r, _, _ := syscall.Syscall(procWGLGetExtensionsStringARB, 1, uintptr(hdc), 0, 0)
return windows.BytePtrToString((*byte)(unsafe.Pointer(r)))
} Workaround: func wglGetExtensionsStringARB(hdc _HDC) string {
r, _, _ := syscall.Syscall(procWGLGetExtensionsStringARB, 1, uintptr(hdc), 0, 0)
return windows.BytePtrToString(*(**byte)(unsafe.Pointer(&r)))
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From https://github.com/hajimehoshi/ebiten/runs/990798566:
The text was updated successfully, but these errors were encountered: