Skip to content

Commit 6fa6b22

Browse files
authored
Avoid unused variable warning with a debug Python build (#5811)
1 parent 06fb17b commit 6fa6b22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyo3-ffi/src/refcount.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::pyport::Py_ssize_t;
22
use crate::PyObject;
3-
#[cfg(py_sys_config = "Py_REF_DEBUG")]
3+
#[cfg(all(not(Py_LIMITED_API), py_sys_config = "Py_REF_DEBUG"))]
44
use std::ffi::c_char;
55
#[cfg(Py_3_12)]
66
use std::ffi::c_int;

0 commit comments

Comments
 (0)