Skip to content

Commit

Permalink
Ignore unsafe pointer conversion warning (#140)
Browse files Browse the repository at this point in the history
This is a temporary fix for #138
to ignore the warning.
  • Loading branch information
andrewkroh authored Jul 15, 2020
1 parent 68c4b9e commit f115143
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Fixed

Fixed the `ss` example by replacing the Logrus package with the stdlib `log` package. https://github.com/elastic/gosigar/issues/123 https://github.com/elastic/gosigar/pull/136
- Fixed the `ss` example by replacing the Logrus package with the stdlib `log` package. https://github.com/elastic/gosigar/issues/123 https://github.com/elastic/gosigar/pull/136

### Changed

- Ignore unsafe pointer conversion warning. https://github.com/elastic/gosigar/issues/138

### Deprecated

## [0.10.5]
Expand Down
2 changes: 2 additions & 0 deletions sigar_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import (
"unsafe"
)

// TODO (2020-07-14): Fix the unsafe pointer conversion. https://github.com/elastic/gosigar/issues/138
//go:nocheckptr
func bytePtrToString(ptr *int8) string {
bytes := (*[10000]byte)(unsafe.Pointer(ptr))

Expand Down

0 comments on commit f115143

Please sign in to comment.