From 426e4dd8f914fefeb84fdaa11fc0d03c96a7315c Mon Sep 17 00:00:00 2001 From: liyunfei Date: Thu, 22 Feb 2024 20:37:39 +0800 Subject: [PATCH] add additional warning options for clang Signed-off-by: liyunfei --- autogen.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/autogen.spec b/autogen.spec index e485681..3972f93 100644 --- a/autogen.spec +++ b/autogen.spec @@ -1,6 +1,6 @@ Name: autogen Version: 5.18.16 -Release: 3 +Release: 4 License: GPLv2+ and GPLv3+ Summary: Automated text file generator URL: http://www.gnu.org/software/autogen/ @@ -45,8 +45,13 @@ Man pages and other related documents. %build # Static libraries are needed to run test-suite. -export CFLAGS="$RPM_OPT_FLAGS -Wno-implicit-fallthrough -Wno-format-overflow \ +CFLAGS="$RPM_OPT_FLAGS -Wno-implicit-fallthrough -Wno-format-overflow \ -Wno-format-truncation" +%if "%toolchain" == "clang" +CFLAGS+=" -Wno-missing-field-initializers -Wno-format " +%endif +export CFLAGS + %configure # Omit unused direct shared library dependencies. @@ -104,6 +109,9 @@ echo "%{_libdir}" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf %exclude %{_infodir}/dir %changelog +* Thu Feb 1 2024 liyunfei - 5.18.16-4 +- add additional warning options for clang + * Tue Oct 18 2022 zhangruifang - 5.18.16-3 - fix stray blanking of config file char -- Gitee