Skip to content

Commit 1f2339e

Browse files
committed
quench a GCC warning
1 parent 483c777 commit 1f2339e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/nanobind/nb_call.h

+2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ NB_INLINE void call_init(PyObject **args, PyObject *kwnames, size_t &nargs,
6868
} else if constexpr (std::is_same_v<D, kwargs_proxy>) {
6969
PyObject *key, *entry;
7070
Py_ssize_t pos = 0;
71+
#if defined(NB_FREE_THREADED)
7172
ft_object_guard guard(value);
73+
#endif
7274
while (PyDict_Next(value.ptr(), &pos, &key, &entry)) {
7375
Py_INCREF(key); Py_INCREF(entry);
7476
args[kwargs_offset + nkwargs] = entry;

0 commit comments

Comments
 (0)