]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Check for compiler warnings in test_cext on Windows (#121088)
authorVictor Stinner <vstinner@python.org>
Fri, 28 Jun 2024 12:41:37 +0000 (14:41 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Jun 2024 12:41:37 +0000 (14:41 +0200)
commit43709d5d5424725ec061de2c12c3761affde69ef
treed37b95065bd4fc00e8b55dfaacbf3d3d18181588
parentef3c400434eab53e358ebfa5da0411fab722cafb
Check for compiler warnings in test_cext on Windows (#121088)

On Windows, test_cext and test_cppext now pass /WX flag to the MSC
compiler to treat all compiler warnings as errors. In verbose mode,
these tests now log the compiler commands to help debugging.

Change Py_BUILD_ASSERT_EXPR implementation on Windows to avoid a
compiler warning about an unnamed structure.
Include/pymacro.h
Lib/test/test_cext/__init__.py
Lib/test/test_cext/setup.py
Lib/test/test_cppext/__init__.py
Lib/test/test_cppext/setup.py