public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
To: git-commits@fedoraproject.org
Subject: [rpms/Simple-Fuzzer] rawhide: Drop not-used variable to make it build again
Date: Tue, 22 Sep 2026 12:59:11 GMT [thread overview]
Message-ID: <179008195110.1.339362583519779627.rpms-Simple-Fuzzer-810263c609ad@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/Simple-Fuzzer
Branch : rawhide
Commit : 810263c609add3cf0bc256e2a51f936e2ea29f2a
Author : Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Date : 2026-09-21T10:20:37+02:00
Stats : +57/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/Simple-Fuzzer/c/810263c609add3cf0bc256e2a51f936e2ea29f2a?branch=rawhide
Log:
Drop not-used variable to make it build again
---
diff --git a/Simple-Fuzzer.spec b/Simple-Fuzzer.spec
index 1ce6e08..b543f81 100644
--- a/Simple-Fuzzer.spec
+++ b/Simple-Fuzzer.spec
@@ -1,7 +1,7 @@
Summary: A simple fuzz test-case builder
Name: Simple-Fuzzer
Version: 0.7.1
-Release: 29%{?dist}
+Release: 30%{?dist}
# Automatically converted from old format: BSD - review is highly recommended.
License: LicenseRef-Callaway-BSD
URL: http://aconole.bytheb.org/programs/sfuzz.html
@@ -17,6 +17,7 @@ Patch2: 0001-configure-disable-snoop-on-OS-X.patch
Patch3: 0001-configure-Use-r-for-sed.patch
Patch4: 0001-array_fuzz-Fix-a-sizeof-issue.patch
Patch5: 0001-url-change-to-bytheb.org.patch
+Patch6: fix-werror.patch
%description
Simple-Fuzzer (sfuzz) is a simplistic fuzz test case generator.
@@ -37,6 +38,7 @@ plugins for Simple Fuzzer
%patch -P3 -p1
%patch -P4 -p1
%patch -P5 -p1
+%patch -P6 -p1
%build
%configure --force-symbols --aux-search-path=%{_libdir}/simple-fuzzer
@@ -65,6 +67,9 @@ mv %{buildroot}%{_datadir}/sfuzz-db/*.so %{buildroot}%{_libdir}/simple-fuzzer/
%license LICENSING
%changelog
+* Mon Sep 21 2026 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 0.7.1-30
+- Drop not-used variable to make it build again
+
* Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
diff --git a/fix-werror.patch b/fix-werror.patch
new file mode 100644
index 0000000..470b16e
--- /dev/null
+++ b/fix-werror.patch
@@ -0,0 +1,51 @@
+Remove unused 'repls' variable from strrepl() and smemrepl() in os-abs.c.
+
+The variable is incremented but never read — both functions return 'origl'
+instead.
+
+GCC 15+ flags this as -Wunused-but-set-variable, which -Werror promotes to a
+build failure.
+
+Assisted-by: LLM
+---
+ os-abs.c | 6 ------
+ 1 file changed, 6 deletions(-)
+
+diff --git a/os-abs.c b/os-abs.c
+index 1111111..2222222 100644
+--- a/os-abs.c
++++ b/os-abs.c
+@@ -692,7 +692,6 @@
+ {
+ char *f;
+ char *str = buf;
+- int repls = 0;
+
+ int origl;
+ int oldl;
+@@ -707,8 +706,6 @@
+
+ while((f = strstr(str, old)) != NULL)
+ {
+- ++repls;
+-
+ origl -= oldl;
+
+ if(origl < 0)
+@@ -728,7 +725,6 @@
+ {
+ char *f;
+ char *str = buf;
+- int repls = 0;
+
+ int origl = buflen;
+ int oldl;
+@@ -740,8 +736,6 @@
+ while((f = __internal_memmem(str, (buf + buflen) - str, old, oldl))
+ != NULL)
+ {
+- ++repls;
+-
+ if( ( (f+newl) < buf) || ( (f+newl) > (buf + maxlen) ) )
+ return origl;
+ else if ( (((f+oldl) < buf)) || ( (f+oldl) > (buf+maxlen)) )
reply other threads:[~2026-09-22 12:59 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=179008195110.1.339362583519779627.rpms-Simple-Fuzzer-810263c609ad@fedoraproject.org \
--to=marcin@juszkiewicz.com.pl \
--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