Skip to content

Conversation

danbev
Copy link
Contributor

@danbev danbev commented Feb 4, 2018

Currently the following warning is generated by when building the
cctests:

../test/cctest/test_node_postmortem_metadata.cc:133:13:
warning: unused variable 'it' [-Wunused-variable]
  for (auto it : *(*env)->req_wrap_queue()) {}
            ^
1 warning generated.

This commmit adds a cast to void to suppres the warning.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

test

Currently the following warning is generated by when building the
cctests:
../test/cctest/test_node_postmortem_metadata.cc:133:13:
warning: unused variable 'it' [-Wunused-variable]
  for (auto it : *(*env)->req_wrap_queue()) {}
            ^
1 warning generated.

This commmit adds a cast to void to suppres the warning.
@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Feb 4, 2018
@danbev
Copy link
Contributor Author

danbev commented Feb 4, 2018

@cjihrig
Copy link
Contributor

cjihrig commented Feb 4, 2018

Duplicate of #18530?

@danbev
Copy link
Contributor Author

danbev commented Feb 4, 2018

@cjihrig It is, sorry about that.

@danbev danbev closed this Feb 4, 2018
@danbev danbev deleted the unused_warning_test_postmortem branch February 28, 2018 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants