summaryrefslogtreecommitdiffstats
path: root/Lib/difflib.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-25 17:28:16 (GMT)
committerGitHub <noreply@github.com>2023-07-25 17:28:16 (GMT)
commit6a43cce32b66e0f66992119dd82959069b6f324a (patch)
tree5dd7b804b5e8c874b8a7b64a7ac6f464e578131a /Lib/difflib.py
parentfabcbe9c12688eb9a902a5c89cb720ed373625c5 (diff)
downloadcpython-6a43cce32b66e0f66992119dd82959069b6f324a.zip
cpython-6a43cce32b66e0f66992119dd82959069b6f324a.tar.gz
cpython-6a43cce32b66e0f66992119dd82959069b6f324a.tar.bz2
gh-107249: Implement Py_UNUSED() for MSVC (#107250)
Fix warnings C4100 in Py_UNUSED() when Python is built with "cl /W4". Example with this function included by Python.h: static inline unsigned int PyUnicode_IS_READY(PyObject* Py_UNUSED(op)) { return 1; } Without this change, building a C program with "cl /W4" which just includes Python.h emits the warning: Include\cpython/unicodeobject.h(199): warning C4100: '_unused_op': unreferenced formal parameter This change fix this warning.
Diffstat (limited to 'Lib/difflib.py')
0 files changed, 0 insertions, 0 deletions