Lines Matching full:misuse
15 x = unsafe.Pointer(y) // ERROR "possible misuse of unsafe.Pointer"
21 x = unsafe.Pointer(1 + uintptr(x)) // ERROR "possible misuse of unsafe.Pointer"
22 x = unsafe.Pointer(uintptr(x) + uintptr(x)) // ERROR "possible misuse of unsafe.Pointer"
24 x = unsafe.Pointer(1 - uintptr(x)) // ERROR "possible misuse of unsafe.Pointer"
35 x = unsafe.Pointer(s3.Data) // ERROR "possible misuse of unsafe.Pointer"
37 x = unsafe.Pointer(s4.Data) // ERROR "possible misuse of unsafe.Pointer"
41 x = unsafe.Pointer(vv.Pointer()) // ERROR "possible misuse of unsafe.Pointer"
42 x = unsafe.Pointer(vv.UnsafeAddr()) // ERROR "possible misuse of unsafe.Pointer"
44 x = unsafe.Pointer(ss1.Data) // ERROR "possible misuse of unsafe.Pointer"
46 x = unsafe.Pointer(ss2.Data) // ERROR "possible misuse of unsafe.Pointer"