-
-
Notifications
You must be signed in to change notification settings - Fork 34.1k
Closed
Labels
buildThe build process and cross-buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
../Python/preconfig.c: In function '_Py_get_xoption':
../Python/preconfig.c:587:24: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
587 | wchar_t *sep = wcschr(option, L'=');
| ^~~~~~
../Python/preconfig.c: In function 'preconfig_init_utf8_mode':
../Python/preconfig.c:618:24: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
{
618 | wchar_t *sep = wcschr(xopt, L'=');
| ^~~~~~CPython versions tested on:
3.14
Operating systems tested on:
Linux
Linked PRs
- gh-145092: fix discards const qualifier from pointer #145093
- gh-145092: fix discards const qualifier from pointer #145095
- [3.13] gh-145092: Fix compiler warning for memchr() and wcschr() returning const pointer (GH-145093) #145101
- [3.14] gh-145092: Fix compiler warning for memchr() and wcschr() returning const pointer (GH-145093) #145102
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
buildThe build process and cross-buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error