git: a162c35141e1 - main - www/tclhttpd: deal with the new clang's hatred for K&R
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 11 Feb 2023 02:53:00 UTC
The branch main has been updated by mi: URL: https://cgit.FreeBSD.org/ports/commit/?id=a162c35141e13918488b9924b82f5b7cce591260 commit a162c35141e13918488b9924b82f5b7cce591260 Author: Mikhail Teterin <mi@FreeBSD.org> AuthorDate: 2023-02-11 02:51:58 +0000 Commit: Mikhail Teterin <mi@FreeBSD.org> CommitDate: 2023-02-11 02:51:58 +0000 www/tclhttpd: deal with the new clang's hatred for K&R --- www/tclhttpd/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/tclhttpd/Makefile b/www/tclhttpd/Makefile index 189e31b1c910..9a0851097447 100644 --- a/www/tclhttpd/Makefile +++ b/www/tclhttpd/Makefile @@ -13,7 +13,7 @@ RUN_DEPENDS= dtplite:devel/tcllib USE_RC_SUBR= tclhttpd -USES= tcl:tea +USES= tcl:tea compiler .include <bsd.port.pre.mk> @@ -44,4 +44,8 @@ post-install: ${FILESDIR}/pkgIndex.tcl >> \ ${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION}/pkgIndex.tcl +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150 +CFLAGS+= -std=c90 -Wno-deprecated-non-prototype +.endif + .include <bsd.port.post.mk>