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

Warn about discarting const qualifier #5987

Merged
merged 9 commits into from Feb 11, 2024

Conversation

matusvalo
Copy link
Contributor

Fixes #5639

@matusvalo matusvalo added this to the 3.0.x milestone Feb 9, 2024
Copy link
Contributor

@da-woods da-woods 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 to me.

@scoder
Copy link
Contributor

scoder commented Feb 10, 2024 via email

@matusvalo
Copy link
Contributor Author

I'd personally assign the rhs/lhs types to local variables at the beginning of the check function, but that's a style detail. I'm fine with this change, too.

I have no problem even with fixing the style. I applied the suggestion and merged master. If the CI is green and there won't be any comment, I will merge the PR.

@matusvalo matusvalo merged commit 24d97fa into cython:master Feb 11, 2024
63 checks passed
matusvalo added a commit to matusvalo/cython that referenced this pull request Feb 11, 2024
@matusvalo matusvalo deleted the warn_const_discart branch February 11, 2024 07:15
@scoder scoder modified the milestones: 3.0.x, 3.0.9 Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Taking a pointer to a const memoryview loses the constness
3 participants