8000 disable warnings on funcs which use go:linkname · Issue #66 · mvdan/unparam · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
disable warnings on funcs which use go:linkname #66
Open
@mvdan

Description

@mvdan
//go:linkname reflect_typedmemclrpartial reflect.typedmemclrpartial
func reflect_typedmemclrpartial(typ *_type, ptr unsafe.Pointer, off, size uintptr) {
    if writeBarrier.needed && typ.ptrdata != 0 {
        bulkBarrierPreWrite(uintptr(ptr), 0, size)
    }
    memclrNoHeapPointers(ptr, size)
}

off here is an unused parameter, but it cannot be removed, as otherwise the go:linkname would break. I guess the user could rename the parameter to _, but that would be somewhat awkward.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0