Skip to content

Commit 32ba775

Browse files
committed
XXX
1 parent bb515d7 commit 32ba775

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/object/class.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,11 +682,14 @@ namespace objects
682682
};
683683
}
684684

685+
#pragma clang diagnostic push
686+
#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
685687
void class_base::def_no_init()
686688
{
687689
handle<> f(::PyCFunction_New(&no_init_def, 0));
688690
this->setattr("__init__", object(f));
689691
}
692+
#pragma clang diagnostic pop
690693

691694
void class_base::enable_pickling_(bool getstate_manages_dict)
692695
{

0 commit comments

Comments
 (0)