-
-
Notifications
You must be signed in to change notification settings - Fork 32k
Compiler warnings on string comparisons in _testcapi #109469
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
Comments
Changing such as |
The point was to use valid address. On some platforms, not all bit combinations can be interpreted as address, and interpreting them as address can even lead to crash. Does the following change help with warning? -#define UNINITIALIZED_PTR ((void *)"uninitialized")
+static const char uninitialized[] = "uninitialized";
+#define UNINITIALIZED_PTR ((void *)uninitialized) |
Yes. |
…testcapi (pythonGH-109533) (cherry picked from commit ed582a2) Co-authored-by: Serhiy Storchaka <[email protected]>
Thanks for the fixes! |
Uh oh!
There was an error while loading. Please reload this page.
Linked PRs
The text was updated successfully, but these errors were encountered: