Skip to content

Commit d88a14b

Browse files
committed
Fix CI
1 parent 8bd68a3 commit d88a14b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/pybind11/detail/foreign.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ inline void *interop_cb_from_python(pymb_binding *binding,
148148
// can fix up the holder before other threads start using the new instance.
149149
inline void init_instance_unregistered(instance *inst, const void *holder) {
150150
assert(holder == nullptr && !inst->owned);
151+
(void) holder; // avoid unused warning if compiled without asserts
151152
value_and_holder v_h = *values_and_holders(inst).begin();
152153

153154
// If using smart_holder, force creation of a shared_ptr that has a

0 commit comments

Comments
 (0)