Skip to content

Commit c07db4e

Browse files
committed
Appease warnings for MSVC
1 parent 2e2b7fe commit c07db4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/detail/internals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ Payload *atomic_get_or_create_in_state_dict(const char *key) {
604604
if (capsule_obj == nullptr) {
605605
throw error_already_set();
606606
}
607-
if PYBIND11_MAYBE_CONSTEXPR (LeakOnInterpreterShutdown) {
607+
if (LeakOnInterpreterShutdown) {
608608
if (capsule_obj == new_capsule.ptr()) {
609609
// Our capsule was inserted.
610610
// Remove the destructor to leak the storage on interpreter shutdown.

0 commit comments

Comments
 (0)