git: 41c598bf1972 - main - databases/nanodbc: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Aug 2023 23:40:40 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=41c598bf1972a6940adaff5f3cbf38afebc06aa2 commit 41c598bf1972a6940adaff5f3cbf38afebc06aa2 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-07 18:55:42 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-07 22:00:19 +0000 databases/nanodbc: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- databases/nanodbc/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/databases/nanodbc/Makefile b/databases/nanodbc/Makefile index dc3b7180d957..27a4d5bdb189 100644 --- a/databases/nanodbc/Makefile +++ b/databases/nanodbc/Makefile @@ -22,4 +22,10 @@ CMAKE_ON= BUILD_SHARED_LIBS \ NANODBC_DISABLE_TESTS NANODBC_DISABLE_EXAMPLES CMAKE_TESTING_ARGS= -DNANODBC_DISABLE_TESTS=OFF # many tests fail: Data source name not found and no default +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=deprecated-declarations -Wno-error=unused-command-line-argument +.endif + .include <bsd.port.mk>