git: 425a32db6a04 - main - security/s2n-tls: Fix llvm15 build

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Fri, 16 Dec 2022 21:13:12 UTC
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=425a32db6a0406255991176098e93ba221218678

commit 425a32db6a0406255991176098e93ba221218678
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2022-12-16 21:06:40 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-12-16 21:08:54 +0000

    security/s2n-tls: Fix llvm15 build
    
    Fix llvm15 build due to the port using -Werror by default, and
    prototypes are now more strictly checked. Add -Wno-strict-prototypes to
    CFLAGS to suppress the warnings-as-errors.
    
    PR:             268413
---
 security/s2n-tls/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/security/s2n-tls/Makefile b/security/s2n-tls/Makefile
index 66d433df8bc2..fc8a98cdf166 100644
--- a/security/s2n-tls/Makefile
+++ b/security/s2n-tls/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	s2n-tls
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.3.31
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	security
 
@@ -20,6 +21,9 @@ USE_LDCONFIG=	yes
 CMAKE_OFF=	BUILD_TESTING
 CMAKE_ON=	BUILD_SHARED_LIBS
 
+# Fix llvm15 build, PR 268413
+CFLAGS+=	-Wno-strict-prototypes
+
 SUB_FILES=	pkg-message
 
 OPTIONS_DEFINE=	DOCS EXAMPLES LTO