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 more MSVC warnings #37334

Closed
wants to merge 4 commits into from
Closed

src: fix more MSVC warnings #37334

wants to merge 4 commits into from

Conversation

targos
Copy link
Member

@targos targos commented Feb 12, 2021

commit c0a9289

src: avoid implicit type conversions (take 2)

This fixes more C4244 MSVC warnings in the code base.

Refs: https://github.com/nodejs/node/pull/37149

commit 6e89d73

src: disable unfixable MSVC warnings

The following warnings are disabled:
- C4065 in node_revert.h: there are no security reversions on the master
  branch.
- C4003 in base64-inl.h: a macro is used four times, only once without
  parameters.

commit 4f94dbc

src: fix ETW_WRITE_EMPTY_EVENT macro

A comment was written before the last line, hiding a check.

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. labels Feb 12, 2021
@targos targos added windows Issues and PRs related to the Windows platform. lib / src Issues and PRs related to general changes in the lib or src directory. and removed lib / src Issues and PRs related to general changes in the lib or src directory. labels Feb 12, 2021
This fixes more C4244 MSVC warnings in the code base.

Refs: nodejs#37149
The following warnings are disabled:
- C4065 in node_revert.h: there are no security reversions on the master
  branch.
- C4003 in base64-inl.h: a macro is used four times, only once without
  parameters.
A comment was written before the last line, hiding a check.
@targos
Copy link
Member Author

targos commented Feb 12, 2021

I ended up with 4f94dbc to fix the lint error. Open to a better alternative...

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@targos
Copy link
Member Author

targos commented Feb 16, 2021

Anyone else wants to review?

targos added a commit that referenced this pull request Feb 20, 2021
This fixes more C4244 MSVC warnings in the code base.

Refs: #37149

PR-URL: #37334
Reviewed-By: James M Snell <[email protected]>
targos added a commit that referenced this pull request Feb 20, 2021
The following warnings are disabled:
- C4065 in node_revert.h: there are no security reversions on the master
  branch.
- C4003 in base64-inl.h: a macro is used four times, only once without
  parameters.

PR-URL: #37334
Reviewed-By: James M Snell <[email protected]>
targos added a commit that referenced this pull request Feb 20, 2021
A comment was written before the last line, hiding a check.

PR-URL: #37334
Reviewed-By: James M Snell <[email protected]>
@targos
Copy link
Member Author

targos commented Feb 20, 2021

Landed in 5421e15...a142842

@targos targos closed this Feb 20, 2021
@targos targos deleted the win-c4244-2 branch February 20, 2021 09:54
targos added a commit that referenced this pull request Feb 28, 2021
This fixes more C4244 MSVC warnings in the code base.

Refs: #37149

PR-URL: #37334
Reviewed-By: James M Snell <[email protected]>
targos added a commit that referenced this pull request Feb 28, 2021
The following warnings are disabled:
- C4065 in node_revert.h: there are no security reversions on the master
  branch.
- C4003 in base64-inl.h: a macro is used four times, only once without
  parameters.

PR-URL: #37334
Reviewed-By: James M Snell <[email protected]>
targos added a commit that referenced this pull request Feb 28, 2021
A comment was written before the last line, hiding a check.

PR-URL: #37334
Reviewed-By: James M Snell <[email protected]>
targos added a commit that referenced this pull request May 27, 2021
This fixes more C4244 MSVC warnings in the code base.

Refs: #37149

PR-URL: #37334
Reviewed-By: James M Snell <[email protected]>
targos added a commit that referenced this pull request May 27, 2021
The following warnings are disabled:
- C4065 in node_revert.h: there are no security reversions on the master
  branch.
- C4003 in base64-inl.h: a macro is used four times, only once without
  parameters.

PR-URL: #37334
Reviewed-By: James M Snell <[email protected]>
targos added a commit that referenced this pull request May 27, 2021
A comment was written before the last line, hiding a check.

PR-URL: #37334
Reviewed-By: James M Snell <[email protected]>
targos added a commit that referenced this pull request May 30, 2021
This fixes more C4244 MSVC warnings in the code base.

Refs: #37149

PR-URL: #37334
Reviewed-By: James M Snell <[email protected]>
targos added a commit that referenced this pull request May 30, 2021
The following warnings are disabled:
- C4065 in node_revert.h: there are no security reversions on the master
  branch.
- C4003 in base64-inl.h: a macro is used four times, only once without
  parameters.

PR-URL: #37334
Reviewed-By: James M Snell <[email protected]>
targos added a commit that referenced this pull request May 30, 2021
A comment was written before the last line, hiding a check.

PR-URL: #37334
Reviewed-By: James M Snell <[email protected]>
targos added a commit that referenced this pull request Jun 5, 2021
This fixes more C4244 MSVC warnings in the code base.

Refs: #37149

PR-URL: #37334
Reviewed-By: James M Snell <[email protected]>
targos added a commit that referenced this pull request Jun 5, 2021
The following warnings are disabled:
- C4065 in node_revert.h: there are no security reversions on the master
  branch.
- C4003 in base64-inl.h: a macro is used four times, only once without
  parameters.

PR-URL: #37334
Reviewed-By: James M Snell <[email protected]>
targos added a commit that referenced this pull request Jun 5, 2021
A comment was written before the last line, hiding a check.

PR-URL: #37334
Reviewed-By: James M Snell <[email protected]>
targos added a commit that referenced this pull request Jun 11, 2021
This fixes more C4244 MSVC warnings in the code base.

Refs: #37149

PR-URL: #37334
Reviewed-By: James M Snell <[email protected]>
targos added a commit that referenced this pull request Jun 11, 2021
The following warnings are disabled:
- C4065 in node_revert.h: there are no security reversions on the master
  branch.
- C4003 in base64-inl.h: a macro is used four times, only once without
  parameters.

PR-URL: #37334
Reviewed-By: James M Snell <[email protected]>
targos added a commit that referenced this pull request Jun 11, 2021
A comment was written before the last line, hiding a check.

PR-URL: #37334
Reviewed-By: James M Snell <[email protected]>
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++. lib / src Issues and PRs related to general changes in the lib or src directory. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants