From b3b99e4369cb12c0974ce52ce376e33d26e36e0d Mon Sep 17 00:00:00 2001 From: xingwei Date: Sat, 17 Jun 2023 03:51:31 +0000 Subject: [PATCH] src/main.c (main): Remove unused variable --- ...c-main.c-main-Remove-unused-variable.patch | 21 +++++++++++++++++++ wget.spec | 9 +++++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 backport-src-main.c-main-Remove-unused-variable.patch diff --git a/backport-src-main.c-main-Remove-unused-variable.patch b/backport-src-main.c-main-Remove-unused-variable.patch new file mode 100644 index 0000000..a6cbc18 --- /dev/null +++ b/backport-src-main.c-main-Remove-unused-variable.patch @@ -0,0 +1,21 @@ +From 59d08d32902e3f7531ea74292b00a8556a975775 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tim=20R=C3=BChsen?= +Date: Sun, 20 Mar 2022 20:44:32 +0100 +Subject: [PATCH] * src/main.c (main): Remove unused variable + + +diff --git a/src/main.c b/src/main.c +index c43671ae..0c4e7d05 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -1361,7 +1361,6 @@ main (int argc, char **argv) + char *p; + int i, ret, longindex; + int nurls; +- int retconf; + int argstring_length; + bool use_userconfig = false; + bool noconfig = false; +-- +2.33.0 + diff --git a/wget.spec b/wget.spec index 4de43c1..6b1e10f 100644 --- a/wget.spec +++ b/wget.spec @@ -1,6 +1,6 @@ Name: wget Version: 1.21.2 -Release: 2 +Release: 3 Summary: A package for retrieving files using HTTP, HTTPS, FTP and FTPS the most widely-used Internet protocols. License: GPLv3+ Url: http://www.gnu.org/software/wget/ @@ -8,6 +8,7 @@ Source: https://ftp.gnu.org/gnu/wget/wget-%{version}.tar.gz Patch0: backport-wget-1.21-ssl-init-output.patch Patch1: backport-wget-1.21-segfault.patch +Patch2: backport-src-main.c-main-Remove-unused-variable.patch Provides: webclient bundled(gnulib) BuildRequires: perl-HTTP-Daemon python3 libuuid-devel perl-podlators libpsl-devel libmetalink-devel @@ -55,6 +56,12 @@ make check %{_infodir}/* %changelog +* Sat Jun 17 2023 xingwei - 1.21.2-3 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:src/main.c (main): Remove unused variable + * Sat Oct 22 2022 gaihuiying - 1.21.2-2 - Type:bugfix - ID:NA -- Gitee