git: 1045cc9d88ab - main - astro/foxtrotgps: Fix build with llvm15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 05 Jun 2023 14:23:56 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1045cc9d88ab265071d70b86260ba7462a3079ee
commit 1045cc9d88ab265071d70b86260ba7462a3079ee
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-05 12:54:57 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-05 14:23:44 +0000
astro/foxtrotgps: Fix build with llvm15
Approved by: portmgr (blanket)
---
astro/foxtrotgps/Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/astro/foxtrotgps/Makefile b/astro/foxtrotgps/Makefile
index 0d92867d44fe..21b3a0d89fec 100644
--- a/astro/foxtrotgps/Makefile
+++ b/astro/foxtrotgps/Makefile
@@ -36,4 +36,10 @@ CONFIGURE_ENV= DATADIRNAME=share
INFO= foxtrotgps
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+= -Wno-error=int-conversion
+.endif
+
+.include <bsd.port.post.mk>