public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/neon] epel10: fix compiler warnings in tests.
@ 2026-08-26 14:40 Joe Orton
  0 siblings, 0 replies; only message in thread
From: Joe Orton @ 2026-08-26 14:40 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/neon
Branch : epel10
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

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}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-26 14:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-26 14:40 [rpms/neon] epel10: fix compiler warnings in tests Joe Orton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox