From 89da02ce5c57d083304280ef3ad46ec0bbb1387f Mon Sep 17 00:00:00 2001 From: jammyjellyfish Date: Fri, 21 Apr 2023 14:42:13 +0800 Subject: [PATCH] Fix clang build error --- cjose.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cjose.spec b/cjose.spec index 972bb67..8de5fbd 100644 --- a/cjose.spec +++ b/cjose.spec @@ -1,6 +1,6 @@ Name: cjose Version: 0.6.1 -Release: 4 +Release: 5 Summary: C library implementing the Javascript Object Signing and Encryption (JOSE) License: MIT URL: https://github.com/cisco/cjose @@ -22,6 +22,10 @@ developing applications that use %{name}. %autosetup -n %{name}-%{version} -p1 %build +%if "%toolchain" == "clang" + CFLAGS="$CFLAGS -Wno-error=strict-prototypes" +%endif + %configure %make_build @@ -49,6 +53,9 @@ make check || (cat test/test-suite.log; exit 1) %{_libdir}/pkgconfig/cjose.pc %changelog +* Fri Apr 21 2023 jammyjellyfish - 0.6.1-5 +- Fix clang build error + * Fri Feb 03 2023 xu_ping - 0.6.1-4 - Fix build failure due to openssl upgrade 3.0 -- Gitee