Others are mostly benign, yet I'd like to reduce them.
E.g. a bunch of warnings will disappear after the next sync with hacl-star upstream, since @msprotz thankfully already merged hacl-star/hacl-star#1028.
Ideally, I'd like to end up with the same warning configuration as used on Linux. When I configure for clang in WSL, I get
CONFIGURE_CFLAGS_NODIST= -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden
See e.g. https://github.com/python/cpython/actions/runs/13681800146/job/38255779088.
I went through roughly 100 warnings to find this one #131020.
Others are mostly benign, yet I'd like to reduce them.
Since many of the warnings stem from
pythoncore, we see them twice, because the_freeze_modulecompiles a lot of those*.cfiles, too - and in case of PGO we see them a third time in the PGUpdate phase.E.g. a bunch of warnings will disappear after the next sync with hacl-star upstream, since @msprotz thankfully already merged hacl-star/hacl-star#1028.
I think it is best to do them in small PRs per
*.cfile.Ideally, I'd like to end up with the same warning configuration as used on Linux. When I configure for clang in WSL, I get
This would currently generate even more warnings, since we currently use
cpython/PCbuild/pyproject-clangcl.props
Line 41 in faa80fc
So maybe I should do this after a first round of cleaning?
Linked PRs
posixmodule.c#133142