public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Joe Orton <jorton@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/neon] epel10.2: fix compiler warnings in tests.
Date: Wed, 26 Aug 2026 14:40:40 GMT	[thread overview]
Message-ID: <178775524061.1.9682682450720383632.rpms-neon-2062b60b4725@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/neon
Branch : epel10.2
Commit : 2062b60b47251d1a57c80248640e85d79476f575
Author : Joe Orton <jorton@redhat.com>
Date   : 2025-11-25T09:29:11+00:00
Stats  : +46/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/neon/c/2062b60b47251d1a57c80248640e85d79476f575?branch=epel10.2

Log:
fix compiler warnings in tests.

---
diff --git a/neon-0.36.0-test-warnings.patch b/neon-0.36.0-test-warnings.patch
new file mode 100644
index 0000000..94ee4c1
--- /dev/null
+++ b/neon-0.36.0-test-warnings.patch
@@ -0,0 +1,45 @@
+commit 3acb99864754e45150cdaa362c84665785da8e48
+Author: Joe Orton <jorton@redhat.com>
+Date:   Tue Nov 25 08:45:16 2025 +0000
+
+    * test/xmlreq.c (parse_for_ctype): Remove unused variable.
+    
+    * test/basic.c (getbuf_retry): Fix compiler warning.
+
+diff --git a/test/basic.c b/test/basic.c
+index 5c21a31..45775f9 100644
+--- a/test/basic.c
++++ b/test/basic.c
+@@ -377,7 +377,6 @@ static int getbuf_retry(void)
+     ne_session *sess;
+     char buf[6] = "00000";
+     size_t buflen = sizeof buf;
+-    int ret;
+ 
+     CALL(make_session(&sess, single_serve_string,
+                       "HTTP/1.1 401 Retry Please\r\n" "Server: neon-test-server\r\n"
+@@ -392,11 +391,9 @@ static int getbuf_retry(void)
+     ne_hook_post_send(sess, post_getbuf_retry, NULL);
+     
+     ONREQ(ne_getbuf(sess, "/", buf, &buflen));
+-    ONV(ret != NE_OK, ("overflow case gave %d not FAILED", ret));
+     ONV(buflen != 1, ("buffer length returned as %" NE_FMT_SIZE_T, buflen));
+ 
+-    ret = any_request(sess, "/closeme");
+-    ONN("failed to close connection", ret != NE_CONNECT);
++    ONN("failed to close connection", any_request(sess, "/closeme") != NE_CONNECT);
+ 
+     return destroy_and_wait(sess);
+ }
+diff --git a/test/xmlreq.c b/test/xmlreq.c
+index ed15934..1fa6cf3 100644
+--- a/test/xmlreq.c
++++ b/test/xmlreq.c
+@@ -73,7 +73,6 @@ static int parse_for_ctype(const char *ctype, const char *body, size_t len,
+     ne_request *req;
+     ne_xml_parser *parser;
+     ne_buffer *buf = ne_buffer_create();
+-    char response[BUFSIZ];
+ 
+     ne_buffer_concat(buf, "HTTP/1.1 200 OK\r\n" "Content-Type: ", ctype, "\r\n",
+                      "Connection: close\r\n" "\r\n", NULL);

diff --git a/neon.spec b/neon.spec
index 46aa608..7bf87f3 100644
--- a/neon.spec
+++ b/neon.spec
@@ -13,6 +13,7 @@ License: LGPL-2.0-or-later
 URL: https://notroj.github.io/neon/
 Source0: https://notroj.github.io/neon/neon-%{version}.tar.gz
 Patch0: neon-0.34.0-multilib.patch
+Patch1: neon-0.36.0-test-warnings.patch
 BuildRequires: expat-devel, openssl-devel, zlib-devel, krb5-devel
 BuildRequires: pkgconfig, make, gcc, xmlto
 %if %{with pkcs11}

                 reply	other threads:[~2026-08-26 14:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178775524061.1.9682682450720383632.rpms-neon-2062b60b4725@fedoraproject.org \
    --to=jorton@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox