./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
^~~~~~~~~~~~~~~~~~~~
Bug report
Link: https://github.com/python/cpython/actions/runs/11333284963/job/31517440086#step:6:1315
Report:
Source of problem:
gototargets 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#125518