Fix definition of _Py_RemoteDebug_ symbols for static linking#135146
Fix definition of _Py_RemoteDebug_ symbols for static linking#135146pablogsal merged 4 commits intopython:mainfrom
_Py_RemoteDebug_ symbols for static linking#135146Conversation
|
I'm happy to include a news entry and issue if desired, we chatted about this problem briefly in Discord and I figured I'd just quickly post the patch. |
|
CI has some compiler warnings |
|
Yeah this file is included in two places but they don't use all the functions. We must silence these warnings because they are false positives |
No need. This is not a user visible change and it doesn't really qualify as a bug fix (depends how you look at it). I am happy either way basically |
|
@pablogsal I've silenced the warnings. |
|
Hummm, I still see the warnings in GitHub in the https://github.com/python/cpython/pull/135146/files page. Is this expected? |
|
Yeah I think so? I'm not familiar with the warnings tooling, but I believe I've just followed the "standard" way to silence new warnings in a file. If there's another way, we'll need to hear from someone who's an owner of such things :) |
|
Maybe set this: |
|
Yeah, as @pablogsal suggests, I'd use diagnostic pragmas to silence these warnings (because MSVC does not feature Lines 297 to 302 in c740fe3 which might be suitable to use / extend. I'd furthermore suggest to enable the warnings again using |
|
On a second thought please scratch my suggestion above. If using works like @pablogsal suggested above, then we're fine, since suppress
Sorry for the noise. |
This reverts commit 6fcd698.
|
That seems to have worked fine, thanks! |
|
Thanks @zanieb for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
…onGH-135146) (cherry picked from commit 2e1ad6e) Co-authored-by: Zanie Blue <contact@zanie.dev>
|
Awesome, thank you very much @zanieb and @chris-eibl ! |
|
GH-135318 is a backport of this pull request to the 3.14 branch. |
As noted at
cpython/Python/remote_debug.h
Line 9 in 01bb53d
python-build-standalone), e.g.: