Skip to content

Quiet dead_code warning (referenced by name) #1222

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

Closed
wants to merge 1 commit into from
Closed

Quiet dead_code warning (referenced by name) #1222

wants to merge 1 commit into from

Conversation

gliptak
Copy link
Contributor

@gliptak gliptak commented Aug 17, 2019

https://buildkite.com/firecracker/firecracker-ci-aarch64/builds/405#bd3e4c7f-a0f5-421a-8007-47af1faf05b8

warning: function is never used: `default_log_options`
  --> vmm/src/vmm_config/logger.rs:53:1
   |
53 | fn default_log_options() -> Value {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: #[warn(dead_code)] on by default

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@gliptak
Copy link
Contributor Author

gliptak commented Aug 19, 2019

@serban300 do you see the build fail relating to my update ion warning?

http://jenkins.katacontainers.io/job/kata-containers-firecracker-PR/259/console

@dianpopa
Copy link
Contributor

Hi @gliptak,

These warning errors are related to support for gathering dirty pages from kvm which is missing on aarch64. We are planning on starting work on adding that in the near future. See #866.
So, my opinion is that it isn t worth investing effort into making a temporary fix like this one. What do you think?

@dianpopa
Copy link
Contributor

@serban300 do you see the build fail relating to my update ion warning?

http://jenkins.katacontainers.io/job/kata-containers-firecracker-PR/259/console

You do not need to worry about the kata-containers-CI failing. It is not related to this particular PR. I already let them know about this issue and they are handling it.

@gliptak
Copy link
Contributor Author

gliptak commented Aug 20, 2019

@dianpopa the reason I was working these warnings, because after cleaning them up, you can configure rustc failing on these as errors, offering tighter validation. If this is of limited/no value, I will close this PR

@dianpopa
Copy link
Contributor

@dianpopa the reason I was working these warnings, because after cleaning them up, you can configure rustc failing on these as errors, offering tighter validation. If this is of limited/no value, I will close this PR

Are you referring to the -D flag that turns errors into warnings? I agree with this approach, moreover we use that flag in the integration test doing clippy validation and we are planning to add clippy enforcement for aarch64 too. See #1007. What I am saying is that we would prefer to do them sequentially (#866 and then #1007) so that we do not add and then remove the same code.

@acatangiu
Copy link
Contributor

Closing this due to inactivity and lack of a clear next step. Feel free to reopen.

@acatangiu acatangiu closed this Oct 11, 2019
@gliptak gliptak deleted the deadcode1 branch October 11, 2019 15:19
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.

3 participants