From 8d062363f620bea85cf4588061df49055094c04d Mon Sep 17 00:00:00 2001 From: bailu Date: Mon, 4 Aug 2025 15:09:38 +0800 Subject: [PATCH] Add cflags to ignore compilation error of Wincompatible-pointer-types Signed-off-by: liuqingtao (cherry picked from commit dc05c2caacd3b6a1975067bbadf4609f200826d0) --- enchant.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/enchant.spec b/enchant.spec index 018bcfd..48086bd 100644 --- a/enchant.spec +++ b/enchant.spec @@ -1,6 +1,6 @@ Name: enchant Version: 1.6.1 -Release: 4 +Release: 5 Epoch: 1 Summary: Generic spell checking library @@ -48,6 +48,7 @@ Applications need libraries integrated by using libenchant with voikko. %build export OBJC=%{__cc} +CFLAGS="%{build_cflags} -Wno-error=incompatible-pointer-types" \ %configure --disable-ispell --disable-hspell --disable-zemberek --enable-myspell \ --with-myspell-dir=/usr/share/myspell make %{?_smp_mflags} @@ -84,6 +85,9 @@ make install DESTDIR=%{buildroot} %{_mandir}/man1/*.gz %changelog +* Mon Aug 04 2025 liuqingtao - 1:1.6.1-5 +- Add cflags to ignore compilation error of Wincompatible-pointer-types + * Fri Mar 15 2024 wangqiang - 1:1.6.1-4 - Fix CC compiler support -- Gitee