We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef761f0 commit 73e6386Copy full SHA for 73e6386
tests/setup.py
@@ -1,5 +1,6 @@
1
#!/usr/bin/env python3
2
import os.path
3
+import sys
4
5
6
TEST_CPP = False
@@ -22,16 +23,19 @@
22
23
# mixture of designated and non-designated initializers
24
'-std=c99',
25
]
-CPPFLAGS = COMMON_FLAGS + [
26
- # no C++ option yet
27
-]
+CPPFLAGS = list(COMMON_FLAGS)
+if sys.version_info >= (3, 12):
28
+ CPPFLAGS.extend((
29
+ '-Wold-style-cast',
30
+ '-Wzero-as-null-pointer-constant',
31
+ ))
32
+
33
34
def main():
35
try:
36
from setuptools import setup, Extension
37
except ImportError:
38
from distutils.core import setup, Extension
- import sys
39
40
if len(sys.argv) >= 3 and sys.argv[2] == '--build-cppext':
41
global TEST_CPP
0 commit comments