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 compiler warnings in pythoncore for Win64 #62607
Comments
The attached patch fixes compiler warnings for the pythoncore project when building on 64-bit Windows. Fixes for built-in modules are not included, however. |
+ <BufferSecurityCheck>false</BufferSecurityCheck> Please don't change too much things in the same patch. The issue bpo-15792 is a better place for such change. |
This issue duplicates the isuse bpo-9566, but your patch is interesting. I created other more specific issues like bpo-18295 and bpo-18294.
I don't think that such change is correct, IMO the right fix is to change the result type to Py_intptr_t. |
Yeah, sorry. This made it in by mistake. It was in the tree just to On Mon, Jul 8, 2013 at 1:20 PM, STINNER Victor <report@bugs.python.org> wrote:
|
The change in grammar.c:addlabel() is correct. The return value is an On Mon, Jul 8, 2013 at 1:23 PM, STINNER Victor <report@bugs.python.org> wrote:
|
Ugh, sorry for the bad quoting (silly GMail). |
Added new patch that removes the duplicate changes from issue bpo-15792 and comments the lone explicit cast. These changes fix 116 of the 216 warnings (54%!) for Win64. Together with issue bpo-15792 brings the remaining count to 72. I am unsure if splitting the changes further makes much sense as guidance I have received on IRC and as others have noted in various bug reports about "spamming" the tracker with issues per file. With that and MvL's comment in issue bpo-18295, I do not think that it is advisable to separate out changes for that issue. |
Can we have the stage set to patch review please. |
Would someone like to review the patch please, being aware that there are other open issues relating to compiler warnings on Windows. |
Does the patch still apply cleanly? |
Almost all compiler warnings on 64-bit Windows have been fixed: bpo-9566 tracked most of them. I extract the CryptGenRandom() fix from bpo-18407-2.diff. I rewrote the ast.c fix differently (use larger type, don't downcast). The patch may still contains relevant changes on Python/dtoa.c and Python/getargs.c, but again, the most critical bugs and warnings have already been fixed. So I suggest to abandon bpo-18407-2.diff which has been written 5 years ago. Thanks Jeremy Kloth for the report and for the patch! I think that it's now time to close the issue. See bpo-9566 for the few remaining issues. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: