git: 3fe6962ac26c - main - x11/kitty: Unbreak on HEAD

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 29 Apr 2023 22:52:15 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3fe6962ac26c20788eab32fb3abf146ae9d1ae8e

commit 3fe6962ac26c20788eab32fb3abf146ae9d1ae8e
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-04-29 22:50:24 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-04-29 22:52:00 +0000

    x11/kitty: Unbreak on HEAD
    
    Approved by:    portmgr (blanket)
---
 x11/kitty/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/x11/kitty/Makefile b/x11/kitty/Makefile
index 7e959c94acc3..267b81f1518f 100644
--- a/x11/kitty/Makefile
+++ b/x11/kitty/Makefile
@@ -74,6 +74,10 @@ _EMPTY_DIRS=	kittens/choose kittens/diff kittens/unicode_input kittens kitty
 
 .include <bsd.port.options.mk>
 
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
+CFLAGS+=	-Wno-error=invalid-utf8 -Winvalid-utf8
+.endif
+
 .if ${ARCH} == powerpc64 || ${ARCH:Mriscv64*}
 MAKE_ENV+=	KITTY_NO_LTO=1
 .endif