Skip to content

Commit 8f828fa

Browse files
ngoldbaumdavidhewitt
authored andcommitted
Avoid unused variable warning with a debug Python build (#5811)
1 parent 93cb946 commit 8f828fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)