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 «use 5.036;» respect -X #21431

Merged
merged 2 commits into from
Sep 10, 2023
Merged

Make «use 5.036;» respect -X #21431

merged 2 commits into from
Sep 10, 2023

Conversation

Leont
Copy link
Contributor

@Leont Leont commented Aug 27, 2023

perl's -X flag disables all warnings globally, but «use 5.036» didn't respect that until now.

This fixes #21427

@Leont Leont changed the title Make «use 5.036;» respect -X #21427 Make «use 5.036;» respect -X Aug 27, 2023
@tonycoz
Copy link
Contributor

tonycoz commented Aug 28, 2023

Th change looks right, but I think it could use a test.

@leonerd
Copy link
Contributor

leonerd commented Aug 29, 2023

Code looks good but I agree a test would be useful. Do we not have any tests of -X already?

@Leont
Copy link
Contributor Author

Leont commented Aug 29, 2023

No, and more disconcertingly neither does -W. It would live in t/run/

@Leont
Copy link
Contributor Author

Leont commented Sep 9, 2023

Added tests.

perl's -X flag disables all warnings globally, but «use 5.036» didn't
respect that until now.
@Leont Leont merged commit 9fcb5c8 into blead Sep 10, 2023
57 checks passed
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.

-X does not disable warning enabled by use v5.3{6,8}
4 participants