Skip to content

Commit 7f36b4a

Browse files
committed
build: Remove -Werror=declaration-after-statement
Python 3.12+ headers trigger it unless built with limited API.
1 parent cb3d263 commit 7f36b4a

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

tox.ini

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,10 @@ passenv = WITH_GCOV
2222
# - Enable BytesWarning
2323
# - Turn all warnings into exceptions.
2424
setenv =
25-
CFLAGS=-Wno-int-in-bool-context -Werror -Werror=declaration-after-statement -std=c99
25+
CFLAGS=-Wno-int-in-bool-context -Werror -std=c99
2626
commands = {envpython} -bb -Werror \
2727
-m unittest discover -v -s Tests -p 't_*' {posargs}
2828

29-
[testenv:py312]
30-
# Python 3.12 headers are incompatible with declaration-after-statement
31-
setenv =
32-
CFLAGS=-Wno-int-in-bool-context -Werror -std=c99
33-
34-
3529
[testenv:py3-nosasltls]
3630
basepython = python3
3731
# don't install, install dependencies manually

0 commit comments

Comments
 (0)