crypto/bn256: fix staticcheck warning SA9009: ineffectual compiler directive

This commit is contained in:
Daniel Liu 2024-10-30 13:43:19 +08:00
parent b4fe994eff
commit 95f8abb765

View file

@ -1,3 +1,4 @@
//go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64,!generic arm64,!generic // +build amd64,!generic arm64,!generic
package bn256 package bn256
@ -9,7 +10,7 @@ import (
"golang.org/x/sys/cpu" "golang.org/x/sys/cpu"
) )
//nolint:varcheck //nolint:varcheck,unused,deadcode
var hasBMI2 = cpu.X86.HasBMI2 var hasBMI2 = cpu.X86.HasBMI2
//go:noescape //go:noescape