diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2023-08-26 09:27:33 +0000 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2023-08-26 09:27:33 +0000 |
commit | ec97e4f3733bd59cb03326778a396a425d33cd05 (patch) | |
tree | 208a8251fede51bdcf23bc7c273417ebf375601c | |
parent | 521b9c768ff94a3c140ebc1fd0baa67293ff5f1d (diff) | |
download | ports-ec97e4f3733bd59cb03326778a396a425d33cd05.tar.gz ports-ec97e4f3733bd59cb03326778a396a425d33cd05.zip |
devel/py-protobuf: Fix build with Clang 16
Reported by: fluffy, rhurlin, <jakub_lach@mailplus.pl>
PR: 273282
-rw-r--r-- | devel/py-protobuf/files/patch-clang16 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/devel/py-protobuf/files/patch-clang16 b/devel/py-protobuf/files/patch-clang16 new file mode 100644 index 000000000000..87b64d4d2354 --- /dev/null +++ b/devel/py-protobuf/files/patch-clang16 @@ -0,0 +1,23 @@ +--- python/message.c.orig 2000-01-01 00:00:00 UTC ++++ python/message.c +@@ -1235,7 +1235,7 @@ static PyObject* PyUpb_Message_CopyFrom(PyObject* _sel + Py_DECREF(tmp); + + upb_Message_DeepCopy(self->ptr.msg, other->ptr.msg, +- upb_MessageDef_MiniTable(other->def), ++ upb_MessageDef_MiniTable((upb_MessageDef *) other->def), + PyUpb_Arena_Get(self->arena)); + PyUpb_Message_SyncSubobjs(self); + +@@ -1606,9 +1606,9 @@ PyObject* DeepCopy(PyObject* _self, PyObject* arg) { + + PyObject* arena = PyUpb_Arena_New(); + upb_Message* clone = +- upb_Message_DeepClone(self->ptr.msg, upb_MessageDef_MiniTable(self->def), ++ upb_Message_DeepClone(self->ptr.msg, upb_MessageDef_MiniTable((upb_MessageDef *) self->def), + PyUpb_Arena_Get(arena)); +- PyObject* ret = PyUpb_Message_Get(clone, self->def, arena); ++ PyObject* ret = PyUpb_Message_Get(clone, (upb_MessageDef *) self->def, arena); + Py_DECREF(arena); + + return ret; |