-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Add -Werror=non-virtual-dtor
(reland)
#81012
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
Conversation
This also resolves #77323 Pull Request resolved: #80584 Approved by: https://github.com/seemethere
🔗 Helpful links
✅ No Failures (0 Pending)As of commit d69e815 (more details on the Dr. CI page): Expand to see more💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
@@ -784,6 +784,11 @@ if(NOT MSVC) | |||
string(APPEND CMAKE_CXX_FLAGS " -Wall") | |||
string(APPEND CMAKE_CXX_FLAGS " -Wextra") | |||
string(APPEND CMAKE_CXX_FLAGS " -Werror=return-type") | |||
if(NOT USE_CUDNN) |
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.
For this flag, I will create a follow-up task to fix the issue upstream in cudnn_frontend where the warning comes from. After that is fixed, I think we can remove this not-so-good check
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.
But can we perhaps suppress one or two files like that?
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.
FYI, PR on the 3rd party cudnn_frontend NVIDIA/cudnn-frontend#33. When this is accepted and merged, this check can be removed
This resolves the downstream issue in pytorch when we try to enable this check. More information can be found at pytorch/pytorch#81012
@pytorchbot merge |
@pytorchbot successfully started a merge job. Check the current status here |
Merge failed due to Matched rule superuser, but PR #81012 was not reviewed yet by any of: four4fish, henryliu-bluehills, sidneyfletcher, fuqianz, Mortimerp9, ... |
@pytorchbot merge |
@pytorchbot successfully started a merge job. Check the current status here |
Hey @malfet. |
Summary: This PR relands #80584, but instead of adding suppression in CMakeLists.txt suppresses it directly in `llvm_codegen.cpp` and just for a single header. In general, it's better to avoid `set_target_properties` pattern for suppressing warnings, as it makes build brittle and hard to debug/understand Pull Request resolved: #81012 Approved by: https://github.com/huydhn, https://github.com/kit1980 Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/2beb57a823f6bbe1824371291686727aab71815d Test plan from GitHub: wait for `ciflow/binaries_wheel` to finish Reviewed By: mehtanirav Differential Revision: D37687572 Pulled By: malfet fbshipit-source-id: fc53f1faab6c99a7b9166c2ea8c934d7f2fd4eac
This PR relands #80584, but instead of adding suppression in CMakeLists.txt suppresses it directly in `llvm_codegen.cpp` and just for a single header. In general, it's better to avoid `set_target_properties` pattern for suppressing warnings, as it makes build brittle and hard to debug/understand Test plan: wait for `ciflow/binaries_wheel` to finish Pull Request resolved: pytorch/pytorch#81012 Approved by: https://github.com/huydhn, https://github.com/kit1980
This PR relands #80584, but instead of adding suppression in CMakeLists.txt suppresses it directly in `llvm_codegen.cpp` and just for a single header. In general, it's better to avoid `set_target_properties` pattern for suppressing warnings, as it makes build brittle and hard to debug/understand Test plan: wait for `ciflow/binaries_wheel` to finish Pull Request resolved: pytorch/pytorch#81012 Approved by: https://github.com/huydhn, https://github.com/kit1980
This PR relands #80584, but instead of adding suppression in CMakeLists.txt suppresses it directly in
llvm_codegen.cpp
and just for a single header.In general, it's better to avoid
set_target_properties
pattern for suppressing warnings, as it makes build brittle and hard to debug/understandTest plan: wait for
ciflow/binaries_wheel
to finish