GeezerVison is showing github.com — gh-90949: Fix an "unused function" compiler warning introduced in GH-139234 by hartwork · Pull Request #139558 · python/cpython
Conversation
hartwork
commented
Oct 4, 2025
•
edited by bedevere-app
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Adds on top of #139368 to fix a compiler warning that did not exist prior to the work on #90949.
CC @picnixz
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The symptom was:
> ./Modules/pyexpat.c:202:1: warning: ‘set_invalid_arg’ defined but not used [-Wunused-function]
> 202 | set_invalid_arg(pyexpat_state *state, xmlparseobject *self, const char *errmsg)
> | ^~~~~~~~~~~~~~~
picnixz
changed the title
gh-90949: Amend GH-139368
gh-90949: Fix an "unused function" compiler warning introduced in GH-139368
Oct 4, 2025
|
I assume the compiler warning is "unused function" right?
|
hartwork reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
I assume the compiler warning is "unused function" right?
@picnixz yes, I put details into the commit message.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Oups, I didn't see it. My bad. Thanks for the fix!
|
hartwork reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
picnixz
changed the title
gh-90949: Fix an "unused function" compiler warning introduced in GH-139368
gh-90949: Fix an "unused function" compiler warning introduced in GH-139234
Oct 4, 2025
|
@picnixz no worries, glad I could help. (The warning showed while working on the backports yesterday where the bundled Expat is not yet at >=2.7.2.)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
danigm
pushed a commit
to openSUSE-Python/cpython
that referenced
this pull request
Oct 7, 2025
pythonGH-139234 (python#139558)
Fix a compiler warning `-Wunused-function` after f04bea4.
The `set_invalid_arg` function in `Modules/pyexpat.c` may be unused if the underlying Expat
version is less than 2.4.0.
Reviewers
picnixz
picnixz approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|