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

Make deprecations produce errors in WPILib builds #169

Conversation

calcmogul
Copy link
Member

No description provided.

@PeterJohnson
Copy link
Member

I thought we turned this off explicitly because in some cases there's no way to suppress the deprecation warning.

@calcmogul
Copy link
Member Author

calcmogul commented Sep 25, 2023

We've been using the WPI_IGNORE_DEPRECATED and WPI_UNIGNORE_DEPRECATED macros to suppress deprecated calls we have to make internally. allwpilib already removes the -Wno-error=deprecated-declarations flag, so this PR is just making that apply to everything that uses native-utils.

@PeterJohnson
Copy link
Member

We remove it only for RoboRIO targets? https://github.com/wpilibsuite/allwpilib/blob/main/shared/config.gradle#L58-L63

@calcmogul
Copy link
Member Author

I think that was an oversight by me. We build everything for athena, so it caught all the instances of unsuppressed deprecation warnings.

@PeterJohnson PeterJohnson merged commit ec71b04 into wpilibsuite:main Sep 25, 2023
5 checks passed
@calcmogul calcmogul deleted the make-deprecations-produce-errors-in-wpilib-builds branch September 25, 2023 20:05
@calcmogul calcmogul restored the make-deprecations-produce-errors-in-wpilib-builds branch September 25, 2023 20:05
@calcmogul calcmogul deleted the make-deprecations-produce-errors-in-wpilib-builds branch September 25, 2023 20:05
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