Skip to content

Ignore pseudo-file "C"#12

Open
aaronbee wants to merge 1 commit into
remyoudompheng:masterfrom
aaronbee:master
Open

Ignore pseudo-file "C"#12
aaronbee wants to merge 1 commit into
remyoudompheng:masterfrom
aaronbee:master

Conversation

@aaronbee

@aaronbee aaronbee commented Feb 1, 2017

Copy link
Copy Markdown

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