public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/Simple-Fuzzer] rawhide: Drop not-used variable to make it build again
@ 2026-09-22 12:59 Marcin Juszkiewicz
  0 siblings, 0 replies; only message in thread
From: Marcin Juszkiewicz @ 2026-09-22 12:59 UTC (permalink / raw)
  To: git-commits

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)) )

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

only message in thread, other threads:[~2026-09-22 12:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-22 12:59 [rpms/Simple-Fuzzer] rawhide: Drop not-used variable to make it build again Marcin Juszkiewicz

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