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

src: fix node_report maybe-uninitialized warning #26291

Closed

Conversation

sam-github
Copy link
Contributor

g++ 8.2 reports warning:

outstream may be used uninitialized in this function [-Wmaybe-uninitialized]

It's wrong, but initialize the variable anyhow to silence the warning.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

g++ 8.2 reports warning:

  outstream may be used uninitialized in this function [-Wmaybe-uninitialized]

It's wrong, but initialize the variable anyhow to silence the warning.
@nodejs-github-bot
Copy link
Collaborator

@sam-github sadly an error occured when I tried to trigger a build :(

@nodejs-github-bot nodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Feb 24, 2019
@cjihrig
Copy link
Contributor

cjihrig commented Feb 24, 2019

Duplicate of #26265?

@sam-github
Copy link
Contributor Author

It is.

@sam-github sam-github closed this Feb 24, 2019
@sam-github sam-github deleted the fix-nodereport-uninit-warning branch February 24, 2019 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants