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

Enable deprecations warnings #6555

Merged
merged 5 commits into from
Aug 23, 2022
Merged

Enable deprecations warnings #6555

merged 5 commits into from
Aug 23, 2022

Conversation

steven-johnson
Copy link
Contributor

We currently disable deprecation warnings inside Halide. This re-enables them there, and also inside add_halide_generator().

(Note, additive to PR #6554)

@steven-johnson
Copy link
Contributor Author

PTAL

Base automatically changed from srj/addgen to master January 13, 2022 04:35
@alexreinking
Copy link
Member

What's the deal with the Windows failure here?

@steven-johnson
Copy link
Contributor Author

What's the deal with the Windows failure here?

No idea, investigating

@alexreinking alexreinking self-requested a review January 13, 2022 21:29
@alexreinking
Copy link
Member

I'm waiting to chat with the Clang developers about this before approving.

@steven-johnson
Copy link
Contributor Author

I'm waiting to chat with the Clang developers about this before approving.

I presume we're still pending a good resolution here?

@alexreinking
Copy link
Member

I presume we're still pending a good resolution here?

I think so... I would be interested to find ways to trip the depreciation warning without requiring any special build configuration.

# which will cause all warnings to be ignored. This is not helpful, since
# we *want* deprecation warnings to be propagated. So we must set
# NO_SYSTEM_FROM_IMPORTED in order for it to be seen.
set_target_properties(${TARGET} PROPERTIES NO_SYSTEM_FROM_IMPORTED YES)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that Clang has a special flag for this... https://clang.llvm.org/docs/UsersManual.html#controlling-diagnostics-in-system-headers

The other approach is to try to make the deprecation warning fire on the class that is directly instantiated by the user, so that the warning appears to originate from user code.

We currently disable deprecation warnings inside Halide. This re-enables them there, and also inside add_halide_generator().
@steven-johnson
Copy link
Contributor Author

Rebased and updated to main -- not sure where we stand on this. IIRC there were issues with deprecation warnings on templated methods not getting triggered, but that's moot (the warnings in question never got added and might not ever be added). Maybe this is better than nothing?

@steven-johnson
Copy link
Contributor Author

PTAL

Copy link
Member

@alexreinking alexreinking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@steven-johnson steven-johnson merged commit 671b26d into main Aug 23, 2022
@steven-johnson steven-johnson deleted the srj/warn-deprecaton branch August 23, 2022 00:39
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
* Enable deprecations warnings

We currently disable deprecation warnings inside Halide. This re-enables them there, and also inside add_halide_generator().
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