From f6ba7e8868df13f6f7557471c8c3fea623bfab7e Mon Sep 17 00:00:00 2001 From: bailu Date: Mon, 4 Aug 2025 11:32:08 +0800 Subject: [PATCH] Ignore Wincompatible-pointer-types error when compiling with gcc-14.3 Signed-off-by: liuqingtao (cherry picked from commit a81b3b1e00987a1de2a3b6d62a0546e7c095ce43) --- dhcp.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dhcp.spec b/dhcp.spec index a2b850a..90ce4af 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -3,7 +3,7 @@ Name: dhcp Version: 4.4.3 -Release: 10 +Release: 11 Summary: Dynamic host configuration protocol software #Please don't change the epoch on this package Epoch: 12 @@ -118,7 +118,7 @@ sed -i -e 's|/var/db/|%{_localstatedir}/lib/dhcpd/|g' contrib/dhcp-lease-list.pl %build autoreconf --verbose --force --install -CFLAGS="%{optflags} -fno-strict-aliasing" \ +CFLAGS="%{optflags} -fno-strict-aliasing -Wno-error=incompatible-pointer-types" \ %configure --with-srv-lease-file=%{_localstatedir}/lib/dhcpd/dhcpd.leases \ --with-srv6-lease-file=%{_localstatedir}/lib/dhcpd/dhcpd6.leases \ --with-cli-lease-file=%{_localstatedir}/lib/dhclient/dhclient.leases \ @@ -319,6 +319,9 @@ exit 0 %{_mandir}/man3/omapi.3.gz %changelog +* Mon Aug 04 2025 Liu Qingtao -12:4.4.3-11 +- Ignore Wincompatible-pointer-types error when compiling with gcc-14.3 + * Thu Mar 20 2025 zhangpan - 12:4.4.3-10 - Type:CVE - ID:NA -- Gitee