mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-15 09:20:44 +00:00
Merge pull request #712 from gzliudan/fix-sa9009
crypto/bn256: fix staticcheck warning SA9009: ineffectual go compiler directive
This commit is contained in:
commit
8f79376ef7
1 changed files with 3 additions and 2 deletions
|
|
@ -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,10 +10,10 @@ 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
|
||||||
func gfpNeg(c, a *gfP)
|
func gfpNeg(c, a *gfP)
|
||||||
|
|
||||||
//go:noescape
|
//go:noescape
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue