public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/scd2html] rawhide: Fix compiler warnings (rhbz#2435096)
@ 2026-06-07  4:01 Maxwell G
  0 siblings, 0 replies; only message in thread
From: Maxwell G @ 2026-06-07  4:01 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/scd2html
Branch : rawhide
Commit : 930f59aaa55ac9aa0baf7e18d0bcc0285a3816e1
Author : Maxwell G <maxwell@gtmx.me>
Date   : 2026-06-06T23:00:58-05:00
Stats  : +61/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/scd2html/c/930f59aaa55ac9aa0baf7e18d0bcc0285a3816e1?branch=rawhide

Log:
Fix compiler warnings (rhbz#2435096)

---
diff --git a/fix-compiler-warnings.patch b/fix-compiler-warnings.patch
new file mode 100644
index 0000000..c8ff659
--- /dev/null
+++ b/fix-compiler-warnings.patch
@@ -0,0 +1,58 @@
+From 7fd6434fe74dc08cb8cbd15b9bfc374a87ec0d11 Mon Sep 17 00:00:00 2001
+From: Hannes Braun <hannes@hannesbraun.net>
+Date: Sat, 18 Nov 2023 14:54:50 +0100
+Subject: [PATCH] Fix compilation issues with clang
+
+Signed-off-by: Hannes Braun <hannes@hannesbraun.net>
+---
+ include/str.h | 2 +-
+ src/main.c    | 2 --
+ src/string.c  | 2 +-
+ 3 files changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/include/str.h b/include/str.h
+index ab7ba690080ddf4328edeb8a0e1c10813bca7c7a..c796b7813cc1a3ccddd29074bb6e9a8fd54315fb 100644
+--- a/include/str.h
++++ b/include/str.h
+@@ -7,7 +7,7 @@ struct str {
+ 	size_t len, size;
+ };
+ 
+-struct str *str_create();
++struct str *str_create(void);
+ void str_free(struct str *str);
+ void str_reset(struct str *str);
+ int str_append_ch(struct str *str, uint32_t ch);
+diff --git a/src/main.c b/src/main.c
+index b08c8a3f1d047d6a8b4cb3b7ce9c52d4f2952d02..3673b4068d857d11f4633ad8853bee1929505552 100644
+--- a/src/main.c
++++ b/src/main.c
+@@ -252,7 +252,6 @@ static uint32_t parse_word(struct parser *p) {
+ 
+ static void parse_text(struct parser *p, bool linkify) {
+ 	uint32_t ch, next, last = ' ';
+-	int i = 0;
+ 	while ((ch = parser_getch(p)) != UTF8_INVALID) {
+ 		switch (ch) {
+ 		case '\\':
+@@ -325,7 +324,6 @@ static void parse_text(struct parser *p, bool linkify) {
+ 			utf8_fputch(p->output, ch);
+ 			break;
+ 		}
+-		++i;
+ 	}
+ }
+ 
+diff --git a/src/string.c b/src/string.c
+index 2fbacbe3804c556267bb1feaf6a5d08c58db47be..da605cef81e078638c9c060f23bee3ced4ec9273 100644
+--- a/src/string.c
++++ b/src/string.c
+@@ -12,7 +12,7 @@ static void ensure_capacity(struct str *str, size_t len) {
+ 	}
+ }
+ 
+-struct str *str_create() {
++struct str *str_create(void) {
+ 	struct str *str = xcalloc(1, sizeof(struct str));
+ 	str->str = xcalloc(16, 1);
+ 	str->size = 16;

diff --git a/scd2html.spec b/scd2html.spec
index a825e0b..51ff5fe 100644
--- a/scd2html.spec
+++ b/scd2html.spec
@@ -8,6 +8,8 @@ URL:            https://sr.ht/~bitfehler/scd2html
 %global furl    https://git.sr.ht/~bitfehler/scd2html
 Source:         %{furl}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 
+Patch:          https://git.sr.ht/~bitfehler/scd2html/commit/7fd6434fe74dc08cb8cbd15b9bfc374a87ec0d11.patch#/fix-compiler-warnings.patch
+
 BuildRequires:  gcc
 BuildRequires:  make
 BuildRequires:  re2c
@@ -20,7 +22,7 @@ scd2html generates HTML from scdoc source files
 
 
 %prep
-%autosetup -n scd2html-v%{version}
+%autosetup -C -p1
 
 # Regenerate linkify.c from linkify.re
 rm src/linkify.c

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

only message in thread, other threads:[~2026-06-07  4:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-07  4:01 [rpms/scd2html] rawhide: Fix compiler warnings (rhbz#2435096) Maxwell G

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