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

Clean up MSVC warnings #1141

Merged
merged 6 commits into from
Nov 16, 2023
Merged

Clean up MSVC warnings #1141

merged 6 commits into from
Nov 16, 2023

Conversation

vasama
Copy link
Contributor

@vasama vasama commented Nov 15, 2023

Suppressed the following warnings via command line options:

  • C4100: Unreferenced formal parameter
  • C4101: Unreferenced local variable
  • C4127: Conditional expression is constant
  • C4324: Structure was padded due to alignas specifier
  • C4456: Declaration hides previous local declaration
  • C4459: Declaration hides global declaration

Fixed two instances of "C4244: Type conversion leads to possible loss of data" in static_thread_pool.hpp by improving integer type safety.

Multiple instances of "C4702: Unreachable code" still remain. It's not a warning that should be suppressed, but I also did not want to go through all those cases in this PR.

This PR depends on #1137.

C4100: Unreferenced formal parameter
C4101: Unreferenced local variable
C4127: Conditional expression is constant
C4324: Structure was padded due to alignas specifier
C4456: Declaration hides previous local declaration
C4459: Declaration hides global declaration
Copy link

copy-pr-bot bot commented Nov 15, 2023

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ericniebler
Copy link
Collaborator

/ok to test

@ericniebler ericniebler merged commit 49cec0b into NVIDIA:main Nov 16, 2023
10 checks passed
@vasama vasama deleted the msvc-warn branch November 17, 2023 14:37
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.

2 participants