-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Fix or disable warnings on latest VS dogfood #49799
Conversation
cc @dotnet/jit-contrib |
@@ -11409,7 +11408,6 @@ void CodeGen::genRegCopy(GenTree* treeNode) | |||
// | |||
// There should never be any circular dependencies, and we will check that here. | |||
|
|||
GenTreeCopyOrReload* copyNode = treeNode->AsCopyOrReload(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If some of these locals exist to aid debugging, I am happy to revert. Just let me know...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you
eng/native/configurecompiler.cmake
Outdated
@@ -502,6 +502,13 @@ if (MSVC) | |||
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/Zc:inline>) # All inline functions must have their definition available in the current translation unit. | |||
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/Zc:forScope>) # Enforce standards-compliant for scope. | |||
|
|||
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/wd4065>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the difference between this block and the block below # Disable Warnings:
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
IMO, it would be useful to comment for each /wd
what the text of the warning is that is being disabled. Otherwise, it's just a big list and nobody goes to the docs to see why there are so many warnings disabled.
Done. Also, deleted a few |
@jkotas fyi, the JIT has it's own set of disabling pragmas, Lines 28 to 45 in 705daa1
|
The global warning disables kick for the JIT as well. I think the items in this list are either redundant with the global list or not needed anymore. I have tried to delete. Let's see what CI thinks. |
This change is affecting Windows only. All Windows CI legs passed. |
No description provided.