From d90cc6132a2c72f7dcec517046fc2ba5e15e51f1 Mon Sep 17 00:00:00 2001 From: ouuleilei Date: Tue, 27 Jun 2023 14:06:02 +0800 Subject: [PATCH] =?UTF-8?q?fix=20build=20error,=20=20error:=20'osname'=20m?= =?UTF-8?q?ay=20be=20used=20uninitialized=20[-Werror=3Dmaybe-uninitialized?= =?UTF-8?q?]=E3=80=81error:=20'=5F=5Fbuiltin=5Fstrncpy'=20offset=200=20is?= =?UTF-8?q?=20out=20of=20the=20bounds=20[0,=200]=20[-Werror=3Darray-bounds?= =?UTF-8?q?]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fcoe-utils.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fcoe-utils.spec b/fcoe-utils.spec index 30fb409..ec350ea 100644 --- a/fcoe-utils.spec +++ b/fcoe-utils.spec @@ -1,6 +1,6 @@ Name: fcoe-utils Version: 1.0.33 -Release: 3 +Release: 4 Summary: Fibre Channel over Ethernet utilities License: GPLv2 URL: https://github.com/morbidrsa/fcoe-utils @@ -29,6 +29,7 @@ fcoemon - service to configure DCB Ethernet QOS filters, works with lldpad cp -v %{SOURCE1} quickstart.txt %build +export CFLAGS="${CFLAGS} -Wno-error=maybe-uninitialized -Wno-error=array-bounds" ./bootstrap.sh %configure %make_build @@ -67,6 +68,9 @@ done %{_mandir}/man8/* %changelog +* Tue Jun 26 2023 ouuleilei - 1.0.33-4 +- fix build error. + * Wed Mar 03 2022 xu_ping - 1.0.33-3 - Backport upstream patch to avoid non-X86 build break. -- Gitee