You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2023/01/31 21:16:54 UTC

[qpid-proton] branch main updated: PROTON-2095: Fix some harmless (but distracting and unnecessary) warnings

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-proton.git


The following commit(s) were added to refs/heads/main by this push:
     new fec172cfd PROTON-2095: Fix some harmless (but distracting and unnecessary) warnings
fec172cfd is described below

commit fec172cfdaa888f4cabace21f2ad435adb5fe9e9
Author: Andrew Stitcher <as...@apache.org>
AuthorDate: Tue Jan 31 16:15:31 2023 -0500

    PROTON-2095: Fix some harmless (but distracting and unnecessary) warnings
---
 python/ext_build.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/ext_build.py b/python/ext_build.py
index c6dc6e40e..8590cdb37 100644
--- a/python/ext_build.py
+++ b/python/ext_build.py
@@ -159,8 +159,8 @@ int pn_ssl_get_peer_hostname_py(pn_ssl_t *ssl, char *hostname, size_t size) {
 }
 
 const char *pn_event_class_name_py(pn_event_t *event) {
-    pn_class_t *class = pn_event_class(event);
-    return class ? pn_class_name(class) : class;
+    const pn_class_t *class = pn_event_class(event);
+    return class ? pn_class_name(class) : 0;
 }
 
 void init() {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org