Modules/expat/xmlparse.c warning about unreachable code #112796
Labels
build
The build process and cross-build
extension-modules
C modules in the Modules dir
topic-XML
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
The code linked to below disables some code by using
if (0 && ...)
and that results in a compile time warning.https://github.com/python/cpython/blob/00cce0fe495ee820cd3ca5878bdbe3dd65b1be7b/Modules/expat/xmlparse.c#L3102C19-L3118
Given that the code has been disabled single 2019 it should be safe to just remove this block, or disable the code by using
#if 0
with a comment when it is prudent to keep the code around.CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
The text was updated successfully, but these errors were encountered: