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

Fix (most) unused variable warnings about clineno #6035

Merged
merged 2 commits into from Feb 25, 2024

Conversation

da-woods
Copy link
Contributor

It's still unused even if we don't set it, so take it out of the bit that sets it conditionally.

It's still unused even if we don't set it, so take it out of the
bit that sets it conditionally.
Copy link
Contributor

@matusvalo matusvalo left a comment

Choose a reason for hiding this comment

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

When compiling large .pyx file all warnings are gone and the file size has same reduced size when c_line_in_traceback=False

@matusvalo matusvalo modified the milestones: 3.0.x, 3.0.9 Feb 25, 2024
@matusvalo
Copy link
Contributor

I am feeling adventurous so let's have it in next sub-minor release. I hope there is no opposition.

@da-woods
Copy link
Contributor Author

I am feeling adventurous so let's have it in next sub-minor release. I hope there is no opposition.

I think we usually count c warnings as defects and so would consider this a bugfix. It's also pretty obviously low impact.

@rgommers
Copy link
Contributor

Thanks! This indeed fixes all the warnings I was seeing in SciPy.

@da-woods da-woods merged commit 63cbf93 into cython:master Feb 25, 2024
64 checks passed
@da-woods da-woods deleted the unused-cline-var branch February 25, 2024 12:48
da-woods added a commit that referenced this pull request Feb 25, 2024
It's still unused even if we don't set it, so take it out of the
bit that sets it conditionally.
@da-woods
Copy link
Contributor Author

3.0.x commit ead1ac6

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.

None yet

3 participants