-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Fix warnings, make warnings error on CI #2919
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
Conversation
5aeb6c4
to
930fc72
Compare
930fc72
to
d104b38
Compare
5a49847
to
28c8a66
Compare
110742e
to
64e26a6
Compare
2def78c
to
f838b7f
Compare
f838b7f
to
52ef758
Compare
47e37fe
to
7bcf409
Compare
Very good! It's my understanding that static analysis errors
So I want to take a bit more time than usual to review these by testing out the code in a debugger and such, as well as having a look at code/docs/tests around the areas fixed. Probably the two open tasks could be turned into two new issues? |
For the most part I'm fairly confident this PR is safe, but yeah I'd appreciate if you and/or anyone else could do a bit more checking around pixelarray and buffer stuff, as I'm not too sure about those fixes |
9ba9c86
to
4bc5918
Compare
1bd58c0
to
57aa52e
Compare
57aa52e
to
c023cb4
Compare
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.
👍 TMNT 👀🥷🐢
thanks heaps
#else | ||
#define PG_LSEEK lseek64 | ||
#endif | ||
|
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.
Proposed #3898 to improve this on non-glibc platforms.
PR to close #1316
Fixes some compiler warnings (and also skips some warnings) and make warnings error on CI
Also fixes most MSVC static analyzer warnings (all except ones in
pygame.mask
) and those too error on CISome skipped warnings (todos for future)
unused-but-set-variable
while compiling freetype. There is a complex macro system here that caused the warning, that seemed hard to fix so I skipped it for nowpygame.mask
about possible buffer overflows, and I'm not sure whether it's a false report or not here, so I skipped it here for now