Skip to content

Commit 4db3dba

Browse files
committed
fix: GIL code in some compilers
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 5aaffb2 commit 4db3dba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/pybind11/critical_section.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class scoped_critical_section {
2929
}
3030
}
3131
#else
32-
explicit scoped_critical_section(handle _obj) = default;
33-
scoped_critical_section(handle _obj1, handle _obj2) = default;
32+
explicit scoped_critical_section(handle) {};
33+
scoped_critical_section(handle, handle) {};
3434
~scoped_critical_section() = default;
3535
#endif
3636

0 commit comments

Comments
 (0)