You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./Programs/_testembed.c:1904:5: warning: code will never be executed [-Wunreachable-code]
const char *err_msg;
^~~~~~~~~~~~~~~~~~~~
sed -e "s,/usr/bin/env python3,/usr/local/bin/python3.14," < ./Tools/scripts/pydoc3 > build/scripts-3.14/pydoc3.14
./Programs/_testembed.c:2052:5: warning: code will never be executed [-Wunreachable-code]
const char *err_msg;
sed -e "s,@EXENAME@,/usr/local/bin/python3.14," < ./Misc/python-config.in >python-config.py
^~~~~~~~~~~~~~~~~~~~
Source of problem:
We cannot have goto targets on variable declarations.
On Fedora 40 with clang 18.1.8, I get the following warning:
./Programs/_testembed.c:1906:5: warning: label followed by a declaration is a C23 extension [-Wc23-extensions]
1906 | const char *err_msg;
| ^
1 warning generated.
Bug report
Link: https://github.com/python/cpython/actions/runs/11333284963/job/31517440086#step:6:1315
Report:
Source of problem:
goto
targets on variable declarations.cpython/Programs/_testembed.c
Lines 1903 to 1910 in cc5a225
const char *err_msg;
as unreachable codeI propose to declare this variable before the first
goto
. This way we can remove this warning. And since this is just a test, we can do that freely.Linked PRs
_testembed.c
#125518The text was updated successfully, but these errors were encountered: