summaryrefslogtreecommitdiffstats
path: root/Tools/clinic
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend@python.org>2023-08-08 08:43:41 (GMT)
committerGitHub <noreply@github.com>2023-08-08 08:43:41 (GMT)
commit5df8b0d5c71a168a94fb64ad9d8190377b6e73da (patch)
tree6eb7e4fb941286bfba8ad1e044a0473391d6b8f6 /Tools/clinic
parentde72677f8a27083b2072b83b3737f891b660bb5c (diff)
downloadcpython-5df8b0d5c71a168a94fb64ad9d8190377b6e73da.zip
cpython-5df8b0d5c71a168a94fb64ad9d8190377b6e73da.tar.gz
cpython-5df8b0d5c71a168a94fb64ad9d8190377b6e73da.tar.bz2
gh-95065: Argument Clinic: Add comment to preprocessor warning code (#107766)
Diffstat (limited to 'Tools/clinic')
-rwxr-xr-xTools/clinic/clinic.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index 82e5b80..c6cf43a 100755
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -850,6 +850,7 @@ class CLanguage(Language):
#endif /* !defined({methoddef_name}) */
""")
DEPRECATED_POSITIONAL_PROTOTYPE: Final[str] = r"""
+ // Emit compiler warnings when we get to Python {major}.{minor}.
#if PY_VERSION_HEX >= 0x{major:02x}{minor:02x}00C0
# error \
{cpp_message}