diff --git a/unix/sysvshm_unix.go b/unix/sysvshm_unix.go index 8794ebb2..9c92ffc7 100644 --- a/unix/sysvshm_unix.go +++ b/unix/sysvshm_unix.go @@ -34,6 +34,7 @@ func SysvShmAttach(id int, addr uintptr, flag int) ([]byte, error) { } // Use unsafe to convert addr into a []byte. + // TODO: convert to unsafe.Slice once we can assume Go 1.17 var b []byte hdr := (*unsafeheader.Slice)(unsafe.Pointer(&b)) hdr.Data = unsafe.Pointer(addr)