From commits-return-48068-archive-asf-public=cust-asf.ponee.io@qpid.apache.org Thu Apr 11 17:07:13 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 742B3180784 for ; Thu, 11 Apr 2019 19:07:12 +0200 (CEST) Received: (qmail 24241 invoked by uid 500); 11 Apr 2019 17:07:07 -0000 Mailing-List: contact commits-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list commits@qpid.apache.org Received: (qmail 23935 invoked by uid 99); 11 Apr 2019 17:07:07 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Apr 2019 17:07:07 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 79261814B7; Thu, 11 Apr 2019 17:07:06 +0000 (UTC) Date: Thu, 11 Apr 2019 17:07:12 +0000 To: "commits@qpid.apache.org" Subject: [qpid-proton] 06/15: NO-JIRA: Fix unused-variable warning from clang MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: robbie@apache.org In-Reply-To: <155500242602.31603.17311107492554217563@gitbox.apache.org> References: <155500242602.31603.17311107492554217563@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: qpid-proton X-Git-Refname: refs/heads/0.27.x X-Git-Reftype: branch X-Git-Rev: c209b5312788b24eff4a3ef7fbfbb43d106306ed X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20190411170706.79261814B7@gitbox.apache.org> This is an automated email from the ASF dual-hosted git repository. robbie pushed a commit to branch 0.27.x in repository https://gitbox.apache.org/repos/asf/qpid-proton.git commit c209b5312788b24eff4a3ef7fbfbb43d106306ed Author: Jiri Danek AuthorDate: Wed Feb 20 22:49:26 2019 -0800 NO-JIRA: Fix unused-variable warning from clang (cherry picked from commit f16be7816f5736e932ae588b605d36b67e757206) --- c/src/core/codec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/c/src/core/codec.c b/c/src/core/codec.c index f8608a1..93b209f 100644 --- a/c/src/core/codec.c +++ b/c/src/core/codec.c @@ -337,6 +337,7 @@ int pni_inspect_exit(void *ctx, pn_data_t *data, pni_node_t *node) if (node->next) { if (parent && parent->atom.type == PN_MAP && (pni_node_lindex(data, node) % 2) == 0) { err = pn_string_addf(str, "="); + if (err) return err; } else if (parent && parent->atom.type == PN_DESCRIBED && node->prev == 0) { err = pn_string_addf(str, " "); if (err) return err; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org For additional commands, e-mail: commits-help@qpid.apache.org