diff options
author | Benjamin Peterson <benjamin@python.org> | 2023-04-13 17:45:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-13 17:45:03 (GMT) |
commit | 7b95d23591f605fc05d4820f83fef8fbf1552729 (patch) | |
tree | 0489a080a992b2563911b1586f02344c15bdf340 /Python | |
parent | a6f95941a3d686707fb38e0f37758e666f25e180 (diff) | |
download | cpython-7b95d23591f605fc05d4820f83fef8fbf1552729.zip cpython-7b95d23591f605fc05d4820f83fef8fbf1552729.tar.gz cpython-7b95d23591f605fc05d4820f83fef8fbf1552729.tar.bz2 |
Fix unused functions warnings in instrumentation.c (GH-103515)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/instrumentation.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/instrumentation.c b/Python/instrumentation.c index 8dc8b01..853e8a1 100644 --- a/Python/instrumentation.c +++ b/Python/instrumentation.c @@ -125,6 +125,7 @@ is_instrumented(int opcode) { return opcode >= MIN_INSTRUMENTED_OPCODE; } +#ifndef NDEBUG static inline bool monitors_equals(_Py_Monitors a, _Py_Monitors b) { @@ -135,6 +136,7 @@ monitors_equals(_Py_Monitors a, _Py_Monitors b) } return true; } +#endif static inline _Py_Monitors monitors_sub(_Py_Monitors a, _Py_Monitors b) @@ -146,6 +148,7 @@ monitors_sub(_Py_Monitors a, _Py_Monitors b) return res; } +#ifndef NDEBUG static inline _Py_Monitors monitors_and(_Py_Monitors a, _Py_Monitors b) { @@ -155,6 +158,7 @@ monitors_and(_Py_Monitors a, _Py_Monitors b) } return res; } +#endif static inline _Py_Monitors monitors_or(_Py_Monitors a, _Py_Monitors b) |