Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore pseudo-file "C" #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

aaronbee
Copy link

@aaronbee aaronbee commented Feb 1, 2017

deadcode generates these errors when processing a package that contains a
a cgo file.

foo/bar/C:12:6: _Cgo_ptr is unused
foo/bar/C:15:5: _Cgo_always_false is unused
foo/bar/C:17:6: _Cgo_use is unused
foo/bar/C:20:6: _Ctype_void is unused
foo/bar/C:23:6: _cgo_runtime_cgocall is unused
foo/bar/C:29:6: _cgoCheckPointer is unused
foo/bar/C:32:6: _cgoCheckResult is unused
foo/bar/C:46:6: _cgoexp_e632ca01e69c_CGoMain is unused

"C" doesn't actually exist. I believe the loader generates it
dynamically when parsing a cgo file.

This change ignores any unused identifiers defined in "C".

deadcode generates these errors when process a package that contains a
a cgo file.

foo/bar/C:12:6: _Cgo_ptr is unused
foo/bar/C:15:5: _Cgo_always_false is unused
foo/bar/C:17:6: _Cgo_use is unused
foo/bar/C:20:6: _Ctype_void is unused
foo/bar/C:23:6: _cgo_runtime_cgocall is unused
foo/bar/C:29:6: _cgoCheckPointer is unused
foo/bar/C:32:6: _cgoCheckResult is unused
foo/bar/C:46:6: _cgoexp_e632ca01e69c_CGoMain is unused

"C" doesn't actually exist. I believe the loader generates it
dynamically when parsing a cgo file.

This change ignores any unused identifiers defined in "C".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant