We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bd68a3 commit d88a14bCopy full SHA for d88a14b
include/pybind11/detail/foreign.h
@@ -148,6 +148,7 @@ inline void *interop_cb_from_python(pymb_binding *binding,
148
// can fix up the holder before other threads start using the new instance.
149
inline void init_instance_unregistered(instance *inst, const void *holder) {
150
assert(holder == nullptr && !inst->owned);
151
+ (void) holder; // avoid unused warning if compiled without asserts
152
value_and_holder v_h = *values_and_holders(inst).begin();
153
154
// If using smart_holder, force creation of a shared_ptr that has a
0 commit comments