From 2a244584be0b8ac9543c07d034d66a08615f77ab Mon Sep 17 00:00:00 2001 From: SaltyFruit Date: Wed, 26 Apr 2023 11:08:26 +0800 Subject: [PATCH] Fix clang build error --- fcoe-utils.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fcoe-utils.spec b/fcoe-utils.spec index 30fb409..930028e 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,10 @@ fcoemon - service to configure DCB Ethernet QOS filters, works with lldpad cp -v %{SOURCE1} quickstart.txt %build +%if "%toolchain" == "clang" + CFLAGS="$CFLAGS -Wno-error=format-nonliteral -Wno-error=strncat-size -Wno-error=strict-prototypes" +%endif + ./bootstrap.sh %configure %make_build @@ -67,6 +71,9 @@ done %{_mandir}/man8/* %changelog +* Wed Apr 26 2023 Xiaoya Huang - 1.0.33-4 +- Fix clang build error + * Wed Mar 03 2022 xu_ping - 1.0.33-3 - Backport upstream patch to avoid non-X86 build break. -- Gitee