Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33
Fix formatting warnings for PyBytesWriter_Format#152
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
vstinner left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I cannot reproduce the issue with GCC 15.2.1. What's your GCC version?
My test: runpython3 runtests.py --current -v withsetup.py changes.
Uh oh!
There was an error while loading.Please reload this page.
amolenaar commentedOct 3, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I was testing on macOS (15) with Python 3.13.7. I suppose Clang is a bit more picky (?). I dida (test) CI run with only the extra warnings added to |
vstinner commentedOct 3, 2025
Ah you're using clang, ok. Using clang, I can reproduce the compiler warning. |
97f1582 intopython:mainUh oh!
There was an error while loading.Please reload this page.
vstinner commentedOct 3, 2025
Merged, thanks for the fix. |
vstinner commentedOct 3, 2025
I'm surprised that |
Add C formatting warnings and fix declaration.
With extra formatting warnings, as we have in PyGObject, we get warnings like:
This PR adds formatting warnings (errors) to the test build and addresses the
format-nonliteralwarning by providing an appropriate prototype for this function.