Skip to content

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
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}

5 participants