This is an automated email from the ASF dual-hosted git repository. astitcher pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git
The following commit(s) were added to refs/heads/main by this push: new db24732d DISPATCH-2346: Change PN_WEAKREF usage to PN_VOID db24732d is described below commit db24732de7b0143428d2359c4ad8af6e842a57e4 Author: Andrew Stitcher <astitc...@apache.org> AuthorDate: Thu Jun 9 17:08:44 2022 -0400 DISPATCH-2346: Change PN_WEAKREF usage to PN_VOID PN_VOID is what should have been used initially as the context type in this record is not a proton PN_OBJECT class type anyway. Moreover PN_WEAKREF will soon not be exported as it probably can't be used correctly outside Proton's own libraries. --- src/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/message.c b/src/message.c index 69827cba..192a4349 100644 --- a/src/message.c +++ b/src/message.c @@ -1491,7 +1491,7 @@ qd_message_t *qd_message_receive(pn_delivery_t *delivery) qd_alloc_safe_ptr_t sp = QD_SAFE_PTR_INIT(qdl); qd_message_set_q2_unblocked_handler((qd_message_t*) msg, qd_link_q2_restart_receive, sp); msg->strip_annotations_in = qd_connection_strip_annotations_in(qdc); - pn_record_def(record, PN_DELIVERY_CTX, PN_WEAKREF); + pn_record_def(record, PN_DELIVERY_CTX, PN_VOID); pn_record_set(record, PN_DELIVERY_CTX, (void*) msg); msg->content->max_message_size = qd_connection_max_message_size(qdc); qd_link_set_incoming_msg(qdl, (qd_message_t*) msg); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org